MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / DepotSortList

Function DepotSortList

src/vehicle_gui.cpp:564–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564void DepotSortList(VehicleList *list)
565{
566 if (list->size() < 2) return;
567 std::sort(list->begin(), list->end(), &VehicleNumberSorter);
568}
569
570/** draw the vehicle profit button in the vehicle list window. */
571static void DrawVehicleProfitButton(TimerGameEconomy::Date age, Money display_profit_last_year, uint num_vehicles, int x, int y)

Callers 1

RefreshVehicleListMethod · 0.85

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected