(svn r16655) -Codechange: use IsRailwayStationTile() more

This commit is contained in:
smatz
2009-06-25 15:54:06 +00:00
parent fa1ad0fd3c
commit 38477f2b36
4 changed files with 4 additions and 5 deletions

View File

@@ -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,