From cecebf3142df509db7f00ffdb4dbab2deb1bf4c5 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 a8de1488e..5f60c7a2a 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -574,7 +574,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(); for (TileIndex tile : ta) { if (IsTileType(tile, MP_STATION) && GetStationIndex(tile) == st_id) return true; } -- cgit v1.2.3-54-g00ecf