changeset 9188:20be86848948 draft

(svn r13051) -Codechange: depot_d belongs in depot_gui.cpp.
author rubidium <rubidium@openttd.org>
date Sun, 11 May 2008 18:17:56 +0000
parents a74878552df9
children 93e5ffaebf46
files src/depot_gui.cpp src/window_gui.h
diffstat 2 files changed, 14 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -100,6 +100,20 @@
 	{   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 = {
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -538,19 +538,6 @@
 };
 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