mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r13051) -Codechange: depot_d belongs in depot_gui.cpp.
This commit is contained in:
parent
56c3f828cd
commit
4caa813711
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue