diff options
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station.cpp b/src/station.cpp index 73d9bf1fd..7e4ce215d 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -479,7 +479,7 @@ CommandCost StationRect::BeforeAddRect(TileIndex tile, int w, int h, StationRect TileArea ta(TileXY(left_a, top_a), TileXY(right_a, bottom_a)); FOR_ALL_LAYERS(layer) { - ta.tile += layer * LayerSize(); + ta.tile = TopTile(ta.tile) + layer * LayerSize(); TILE_AREA_LOOP(tile, ta) { if (IsTileType(tile, MP_STATION) && GetStationIndex(tile) == st_id) return true; } |