(svn r16655) -Codechange: use IsRailwayStationTile() more
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user