summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-08 16:27:54 +0000
committerrubidium <rubidium@openttd.org>2007-03-08 16:27:54 +0000
commitce919e8c719f0f698ac86dcaa528368316f2e52d (patch)
treee32a4dc6207efbaacc5af4e5c41a353b98b9a897 /src/vehicle_gui.h
parentaca3fb2b6ef69ae571b167d3071edd46d0ed383c (diff)
downloadopenttd-ce919e8c719f0f698ac86dcaa528368316f2e52d.tar.xz
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
Diffstat (limited to 'src/vehicle_gui.h')
-rw-r--r--src/vehicle_gui.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h
index d5c55c722..e104f8307 100644
--- a/src/vehicle_gui.h
+++ b/src/vehicle_gui.h
@@ -56,17 +56,17 @@ void ShowReplaceVehicleWindow(byte vehicletype);
static inline void DrawVehicleImage(const Vehicle *v, int x, int y, int count, int skip, VehicleID selection)
{
switch (v->type) {
- case VEH_Train: DrawTrainImage(v, x, y, count, skip, selection); break;
- case VEH_Road: DrawRoadVehImage(v, x, y, selection); break;
- case VEH_Ship: DrawShipImage(v, x, y, selection); break;
- case VEH_Aircraft: DrawAircraftImage(v, x, y, selection); break;
+ case VEH_TRAIN: DrawTrainImage(v, x, y, count, skip, selection); break;
+ case VEH_ROAD: DrawRoadVehImage(v, x, y, selection); break;
+ case VEH_SHIP: DrawShipImage(v, x, y, selection); break;
+ case VEH_AIRCRAFT: DrawAircraftImage(v, x, y, selection); break;
default: NOT_REACHED();
}
}
static inline uint GetVehicleListHeight(byte type)
{
- return (type == VEH_Train || type == VEH_Road) ? 14 : 24;
+ return (type == VEH_TRAIN || type == VEH_ROAD) ? 14 : 24;
}
#endif /* VEHICLE_GUI_H */