diff options
Diffstat (limited to 'src/newgrf_commons.cpp')
-rw-r--r-- | src/newgrf_commons.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp index acda32481..150402647 100644 --- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -291,7 +291,7 @@ TileIndex GetNearbyTile(byte parameter, TileIndex tile) if (y >= 8) y -= 16; /* Swap width and height depending on axis for railway stations */ - if (IsRailwayStationTile(tile) && GetRailStationAxis(tile) == AXIS_Y) Swap(x, y); + if (HasStationTileRail(tile) && GetRailStationAxis(tile) == AXIS_Y) Swap(x, y); /* Make sure we never roam outside of the map, better wrap in that case */ return TILE_MASK(tile + TileDiffXY(x, y)); |