(svn r16938) -Codechange: introduce helper function to tell whether a tile is either a rail station or rail waypoint tile
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
if (!::IsValidTile(tile)) return false;
|
||||
|
||||
return (::IsTileType(tile, MP_RAILWAY) && !::IsRailDepot(tile)) ||
|
||||
(::IsRailwayStationTile(tile) && !::IsStationTileBlocked(tile)) || ::IsLevelCrossingTile(tile);
|
||||
(::HasStationTileRail(tile) && !::IsStationTileBlocked(tile)) || ::IsLevelCrossingTile(tile);
|
||||
}
|
||||
|
||||
/* static */ bool AIRail::IsLevelCrossingTile(TileIndex tile)
|
||||
|
Reference in New Issue
Block a user