(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:
@@ -155,7 +155,7 @@ RailType GetTileRailType(TileIndex tile)
|
||||
break;
|
||||
|
||||
case MP_STATION:
|
||||
if (IsRailwayStation(tile) || IsRailWaypoint(tile)) return GetRailType(tile);
|
||||
if (HasStationRail(tile)) return GetRailType(tile);
|
||||
break;
|
||||
|
||||
case MP_TUNNELBRIDGE:
|
||||
|
Reference in New Issue
Block a user