summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2007-01-21 00:01:47 +0000
committerbjarni <bjarni@openttd.org>2007-01-21 00:01:47 +0000
commitc8c27b974058e5c6673ed7a7d0bdd2eb623d4295 (patch)
tree8c1a71e7972a3d2f2e3847db25fc4cf7a81aca7f /src/vehicle_gui.h
parent470619a8bb960501bf54d82cb3a1c2a9f7006768 (diff)
downloadopenttd-c8c27b974058e5c6673ed7a7d0bdd2eb623d4295.tar.xz
(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()
Diffstat (limited to 'src/vehicle_gui.h')
-rw-r--r--src/vehicle_gui.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h
index 76f6a5bcc..a3d20e4f7 100644
--- a/src/vehicle_gui.h
+++ b/src/vehicle_gui.h
@@ -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)