equal
deleted
inserted
replaced
9 #include "window.h" |
9 #include "window.h" |
10 #include "engine.h" |
10 #include "engine.h" |
11 #include "gui.h" |
11 #include "gui.h" |
12 #include "command.h" |
12 #include "command.h" |
13 #include "gfx.h" |
13 #include "gfx.h" |
|
14 #include "variables.h" |
|
15 #include "vehicle_gui.h" |
|
16 |
|
17 Sorting _sorting; |
|
18 |
|
19 static uint32 _internal_name_sorter_id; // internal StringID for default vehicle-names |
|
20 static uint32 _last_vehicle_idx; // cached index to hopefully speed up name-sorting |
|
21 static bool _internal_sort_order; // descending/ascending |
14 |
22 |
15 VehicleSortListingTypeFunctions * const _vehicle_sorter[] = { |
23 VehicleSortListingTypeFunctions * const _vehicle_sorter[] = { |
16 &VehicleUnsortedSorter, |
24 &VehicleUnsortedSorter, |
17 &VehicleNumberSorter, |
25 &VehicleNumberSorter, |
18 &VehicleNameSorter, |
26 &VehicleNameSorter, |