summaryrefslogtreecommitdiff
path: root/player_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-01-19 19:15:03 +0000
committerbjarni <bjarni@openttd.org>2005-01-19 19:15:03 +0000
commit467e4b82bfb6ceb2197a73372d9e417b8d9ff59c (patch)
tree2bf58365c54d2375ef13ac173631a7846771dc03 /player_gui.c
parent640985ce04a2ba44bf69b85e7fb91edd4b507b08 (diff)
downloadopenttd-467e4b82bfb6ceb2197a73372d9e417b8d9ff59c.tar.xz
(svn r1568) made an enum of train subtypes to make the code more readable
Diffstat (limited to 'player_gui.c')
-rw-r--r--player_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player_gui.c b/player_gui.c
index 109e3e80c..d3ef4fadc 100644
--- a/player_gui.c
+++ b/player_gui.c
@@ -424,7 +424,7 @@ static void DrawPlayerVehiclesAmount(int player)
FOR_ALL_VEHICLES(v) {
if (v->owner == player) {
if (v->type == VEH_Train) {
- if (v->subtype == 0)
+ if (v->subtype == TS_Front_Engine)
train++;
} else if (v->type == VEH_Road) {
road++;