# HG changeset patch # User rubidium # Date 1210529876 0 # Node ID 58cb2dd94fab6c6d01b896a40c28e30fc8c502bc # Parent ea1ad8a526a4d75ca191a748b1eca5296d0b02ae (svn r13051) -Codechange: depot_d belongs in depot_gui.cpp. diff -r ea1ad8a526a4 -r 58cb2dd94fab src/depot_gui.cpp --- a/src/depot_gui.cpp Sun May 11 17:44:56 2008 +0000 +++ b/src/depot_gui.cpp Sun May 11 18:17:56 2008 +0000 @@ -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 = { diff -r ea1ad8a526a4 -r 58cb2dd94fab src/window_gui.h --- a/src/window_gui.h Sun May 11 17:44:56 2008 +0000 +++ b/src/window_gui.h Sun May 11 18:17:56 2008 +0000 @@ -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