(svn r18576) -Codechange: use the function to determine the width of digits for determining the width of the unitnumber in vehicle lists.

This commit is contained in:
rubidium
2009-12-20 16:44:41 +00:00
parent 90b7f0f3cb
commit 1ea8cb4fc4
2 changed files with 5 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ struct BaseVehicleListWindow : public Window {
GUIVehicleList vehicles; ///< The list of vehicles
Listing *sorting; ///< Pointer to the vehicle type related sorting.
VehicleType vehicle_type; ///< The vehicle type that is sorted
UnitID max_unitnumber; ///< The maximum UnitID
byte unitnumber_digits; ///< The number of digits of the highest unit number
static const StringID vehicle_sorter_names[];
static GUIVehicleList::SortFunction * const vehicle_sorter_funcs[];