diff options
author | smatz <smatz@openttd.org> | 2009-06-25 15:54:06 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-06-25 15:54:06 +0000 |
commit | 38477f2b36b6d3ce3123eb379dbbdc29fb0f5251 (patch) | |
tree | 6a46f03ad7aae756c846320b9ab15065790b933f /src/train_cmd.cpp | |
parent | fa1ad0fd3c4bb20af746d5ee7588afcb0e5f8375 (diff) | |
download | openttd-38477f2b36b6d3ce3123eb379dbbdc29fb0f5251.tar.xz |
(svn r16655) -Codechange: use IsRailwayStationTile() more
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index ac518eb2b..c6a1e9fed 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2574,8 +2574,7 @@ static bool NtpCallbFindStation(TileIndex tile, TrainTrackFollowerData *ttfd, Tr /* did we reach the final station? */ if ((ttfd->station_index == INVALID_STATION && tile == ttfd->dest_coords) || ( - IsTileType(tile, MP_STATION) && - IsRailwayStation(tile) && + IsRailwayStationTile(tile) && GetStationIndex(tile) == ttfd->station_index )) { /* We do not check for dest_coords if we have a station_index, |