diff options
author | celestar <celestar@openttd.org> | 2006-03-26 14:41:39 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-03-26 14:41:39 +0000 |
commit | 3770ad063763c7c459dd8f13190df53691c009cf (patch) | |
tree | e324cf8160df4a8f909bcb14f327a215bfcc2f6b /train_cmd.c | |
parent | 9ad72f2d47f63c3d871b88d210bd1f0b0c986530 (diff) | |
download | openttd-3770ad063763c7c459dd8f13190df53691c009cf.tar.xz |
(svn r4113) Moved all relevant map functions for stations to station_map.[ch]
Some work with animated tiles remains. Thanks to Tron for parts of the code and lots of proof-reading and suggesting
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c index 354b86aea..245f37e3e 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -2029,7 +2029,7 @@ static bool NtpCallbFindStation(TileIndex tile, TrainTrackFollowerData *ttfd, in // did we reach the final station? if ((ttfd->station_index == INVALID_STATION && tile == ttfd->dest_coords) || ( IsTileType(tile, MP_STATION) && - IS_BYTE_INSIDE(_m[tile].m5, 0, 8) && + IsRailwayStation(tile) && GetStationIndex(tile) == ttfd->station_index )) { /* We do not check for dest_coords if we have a station_index, |