diff options
author | Erich Eckner <git@eckner.net> | 2018-11-06 12:32:33 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-01-16 21:58:16 +0100 |
commit | cecebf3142df509db7f00ffdb4dbab2deb1bf4c5 (patch) | |
tree | b3b4017956dbc98989c9e10e8ca144c5c99d9e5f | |
parent | 4c4efe6b032bfbb47bac40748d0b97749e45572e (diff) | |
download | openttd-cecebf3142df509db7f00ffdb4dbab2deb1bf4c5.tar.xz |
bugfix removal of station
-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 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; } |