diff options
author | Erich Eckner <git@eckner.net> | 2018-11-06 12:32:33 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-16 19:11:47 +0100 |
commit | 28bef186d5c42c8d6acec87973fc6a2aa8919850 (patch) | |
tree | 516cca105b107e25bbddb0cb45a7b539c87c9326 /src | |
parent | 93771e6e5890c313eff5f4155d5e84b1bfdd5e71 (diff) | |
download | openttd-28bef186d5c42c8d6acec87973fc6a2aa8919850.tar.xz |
bugfix removal of station
Diffstat (limited to 'src')
-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; } |