Add maximum speed (fully loaded) to train window sort list

This commit is contained in:
Jonathan G Rennison
2021-09-18 23:51:08 +01:00
parent 2e626d70e8
commit 9ad5e4baf0
4 changed files with 45 additions and 5 deletions

View File

@@ -127,8 +127,6 @@ public:
static VehicleGroupSortFunction * const vehicle_group_none_sorter_funcs[];
static VehicleGroupSortFunction * const vehicle_group_shared_orders_sorter_funcs[];
const uint vehicle_sorter_non_ground_veh_disable_mask = (1 << 11); // STR_SORT_BY_LENGTH
BaseVehicleListWindow(WindowDesc *desc, WindowNumber wno);
void OnInit() override;
@@ -173,6 +171,8 @@ public:
NOT_REACHED();
}
}
uint GetSorterDisableMask(VehicleType type) const;
};
uint GetVehicleListHeight(VehicleType type, uint divisor = 1);