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

Function ShowVehicleListWindowLocal

src/vehicle_gui.cpp:2280–2287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2278};
2279
2280static void ShowVehicleListWindowLocal(CompanyID company, VehicleListType vlt, VehicleType vehicle_type, uint32_t unique_number)
2281{
2282 if (!Company::IsValidID(company) && company != OWNER_NONE) return;
2283
2284 assert(vehicle_type < std::size(_vehicle_list_desc));
2285 VehicleListIdentifier vli(vlt, vehicle_type, company, unique_number);
2286 AllocateWindowDescFront<VehicleListWindow>(_vehicle_list_desc[vehicle_type], vli.ToWindowNumber(), vli);
2287}
2288
2289void ShowVehicleListWindow(CompanyID company, VehicleType vehicle_type)
2290{

Callers 1

ShowVehicleListWindowFunction · 0.85

Calls 2

ToWindowNumberMethod · 0.80
sizeFunction · 0.50

Tested by

no test coverage detected