summaryrefslogtreecommitdiff
path: root/station_cmd.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 /station_cmd.c
parent640985ce04a2ba44bf69b85e7fb91edd4b507b08 (diff)
downloadopenttd-467e4b82bfb6ceb2197a73372d9e417b8d9ff59c.tar.xz
(svn r1568) made an enum of train subtypes to make the code more readable
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c
index cde11f1e9..fe990857a 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -2188,7 +2188,7 @@ static uint32 VehicleEnter_Station(Vehicle *v, uint tile, int x, int y)
uint16 spd;
if (v->type == VEH_Train) {
- if (IS_BYTE_INSIDE(_map5[tile], 0, 8) && v->subtype == 0 &&
+ if (IS_BYTE_INSIDE(_map5[tile], 0, 8) && v->subtype == TS_Front_Engine &&
!IsTrainStationTile(tile + TileOffsByDir(v->direction >> 1))) {
station_id = _map2[tile];