diff options
author | rubidium <rubidium@openttd.org> | 2008-05-17 20:54:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-17 20:54:18 +0000 |
commit | 8ff56af53d3c160d97db831a579b222413c4e10f (patch) | |
tree | a6539103a8675f69e55e00b8315b178a88fcb37e /src/vehicle_gui.h | |
parent | 107371a26b71659521c29b3bfc964df135af2acb (diff) | |
download | openttd-8ff56af53d3c160d97db831a579b222413c4e10f.tar.xz |
(svn r13146) -Codechange: vehicle_base.h doesn't need to be included in vehicle_gui.h.
Diffstat (limited to 'src/vehicle_gui.h')
-rw-r--r-- | src/vehicle_gui.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h index e34282cc2..b9ff7cf02 100644 --- a/src/vehicle_gui.h +++ b/src/vehicle_gui.h @@ -11,7 +11,6 @@ #include "order_type.h" #include "station_type.h" #include "engine_type.h" -#include "vehicle_base.h" void DrawVehicleProfitButton(const Vehicle *v, int x, int y); void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order); @@ -90,21 +89,6 @@ void DrawVehicleImage(const Vehicle *v, int x, int y, VehicleID selection, int c * For ease of use it can be called with both Vehicle pointers and VehicleIDs. */ void ChangeVehicleViewWindow(VehicleID from_index, VehicleID to_index); -static inline void ChangeVehicleViewWindow(const Vehicle *from_v, VehicleID to_index) -{ - ChangeVehicleViewWindow(from_v->index, to_index); -} - -static inline void ChangeVehicleViewWindow(VehicleID from_index, const Vehicle *to_v) -{ - ChangeVehicleViewWindow(from_index, to_v->index); -} - -static inline void ChangeVehicleViewWindow(const Vehicle *from_v, const Vehicle *to_v) -{ - ChangeVehicleViewWindow(from_v->index, to_v->index); -} - static inline uint GetVehicleListHeight(VehicleType type) { return (type == VEH_TRAIN || type == VEH_ROAD) ? 14 : 24; |