equal
deleted
inserted
replaced
536 bool close; |
536 bool close; |
537 byte byte_1; |
537 byte byte_1; |
538 }; |
538 }; |
539 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(def_d)); |
539 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(def_d)); |
540 |
540 |
541 struct depot_d { |
|
542 VehicleID sel; |
|
543 VehicleType type; |
|
544 bool generate_list; |
|
545 uint16 engine_list_length; |
|
546 uint16 wagon_list_length; |
|
547 uint16 engine_count; |
|
548 uint16 wagon_count; |
|
549 Vehicle **vehicle_list; |
|
550 Vehicle **wagon_list; |
|
551 }; |
|
552 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(depot_d)); |
|
553 |
|
554 enum SortListFlags { |
541 enum SortListFlags { |
555 VL_NONE = 0, ///< no sort |
542 VL_NONE = 0, ///< no sort |
556 VL_DESC = 1 << 0, ///< sort descending or ascending |
543 VL_DESC = 1 << 0, ///< sort descending or ascending |
557 VL_RESORT = 1 << 1, ///< instruct the code to resort the list in the next loop |
544 VL_RESORT = 1 << 1, ///< instruct the code to resort the list in the next loop |
558 VL_REBUILD = 1 << 2, ///< create sort-listing to use for qsort and friends |
545 VL_REBUILD = 1 << 2, ///< create sort-listing to use for qsort and friends |