summaryrefslogtreecommitdiff
path: root/src/autoreplace_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-03-28 16:34:50 +0000
committerrubidium <rubidium@openttd.org>2008-03-28 16:34:50 +0000
commit878489e38dc875e644c5de25f690c4aa64aa2d19 (patch)
tree23f7fccf6188a92b23e3ba940ae3cc7e798d5db5 /src/autoreplace_gui.cpp
parent58e6e75320a3d6ca864625f6dbd2cbb961997edc (diff)
downloadopenttd-878489e38dc875e644c5de25f690c4aa64aa2d19.tar.xz
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r--src/autoreplace_gui.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp
index 3ea1cbdb4..9c6eb3466 100644
--- a/src/autoreplace_gui.cpp
+++ b/src/autoreplace_gui.cpp
@@ -23,6 +23,19 @@
#include "table/sprites.h"
#include "table/strings.h"
+struct replaceveh_d {
+ byte sel_index[2];
+ EngineID sel_engine[2];
+ uint16 count[2];
+ bool wagon_btnstate; ///< true means engine is selected
+ EngineList list[2];
+ bool update_left;
+ bool update_right;
+ bool init_lists;
+ GroupID sel_group;
+};
+assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(replaceveh_d));
+
static RailType _railtype_selected_in_replace_gui;
static bool _rebuild_left_list;