From 28bef186d5c42c8d6acec87973fc6a2aa8919850 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 6 Nov 2018 12:32:33 +0100 Subject: bugfix removal of station --- src/station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-54-g00ecf