summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-11 18:17:56 +0000
committerrubidium <rubidium@openttd.org>2008-05-11 18:17:56 +0000
commit4caa8137111aeb896bddfcd931bfeae4287c5fc9 (patch)
tree0e2b7e8382ed90500e13a9f3df0b40528de76dd9 /src
parent56c3f828cda0521ecc3bef1d92e78e4f10cc0980 (diff)
downloadopenttd-4caa8137111aeb896bddfcd931bfeae4287c5fc9.tar.xz
(svn r13051) -Codechange: depot_d belongs in depot_gui.cpp.
Diffstat (limited to 'src')
-rw-r--r--src/depot_gui.cpp14
-rw-r--r--src/window_gui.h13
2 files changed, 14 insertions, 13 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 26cd8ef1c..3101b0188 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -100,6 +100,20 @@ static const Widget _depot_widgets[] = {
{ WIDGETS_END},
};
+
+struct depot_d {
+ VehicleID sel;
+ VehicleType type;
+ bool generate_list;
+ uint16 engine_list_length;
+ uint16 wagon_list_length;
+ uint16 engine_count;
+ uint16 wagon_count;
+ Vehicle **vehicle_list;
+ Vehicle **wagon_list;
+};
+assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(depot_d));
+
static void DepotWndProc(Window *w, WindowEvent *e);
static const WindowDesc _train_depot_desc = {
diff --git a/src/window_gui.h b/src/window_gui.h
index 73f7065e7..2edef2343 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -538,19 +538,6 @@ struct def_d {
};
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(def_d));
-struct depot_d {
- VehicleID sel;
- VehicleType type;
- bool generate_list;
- uint16 engine_list_length;
- uint16 wagon_list_length;
- uint16 engine_count;
- uint16 wagon_count;
- Vehicle **vehicle_list;
- Vehicle **wagon_list;
-};
-assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(depot_d));
-
enum SortListFlags {
VL_NONE = 0, ///< no sort
VL_DESC = 1 << 0, ///< sort descending or ascending