(svn r8293) -Codechange: overloaded ShowVehicleListWindow() so it can open all types of vehicle lists (depending on arguments)
- Also removed some unneeded arguments - this also allows removing an if-else cascade in ShowVehicleListWindowLocal()
This commit is contained in:
@@ -53,9 +53,10 @@ void ChangeVehicleViewWindow(const Vehicle *from_v, const Vehicle *to_v);
|
||||
uint ShowAdditionalText(int x, int y, uint w, EngineID engine);
|
||||
uint ShowRefitOptionsList(int x, int y, uint w, EngineID engine);
|
||||
|
||||
void ShowVehicleListWindow(PlayerID player, StationID station, byte vehicle_type);
|
||||
void ShowVehWithSharedOrders(Vehicle *v, byte vehicle_type);
|
||||
void ShowVehDepotOrders(PlayerID player, byte vehicle_type, TileIndex depot_tile);
|
||||
void ShowVehicleListWindow(const Vehicle *v);
|
||||
void ShowVehicleListWindow(PlayerID player, byte vehicle_type);
|
||||
void ShowVehicleListWindow(PlayerID player, byte vehicle_type, StationID station);
|
||||
void ShowVehicleListWindow(PlayerID player, byte vehicle_type, TileIndex depot_tile);
|
||||
|
||||
|
||||
static inline void DrawVehicleImage(const Vehicle *v, int x, int y, int count, int skip, VehicleID selection)
|
||||
|
Reference in New Issue
Block a user