diff options
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 1113c66c3..22ecde8b7 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -31,6 +31,7 @@ #include "variables.h" #include "train.h" #include "roadveh.h" +#include "bridge_map.h" #include "unmovable_map.h" #include "string.h" #include "screenshot.h" @@ -1137,7 +1138,7 @@ static void PlaceProc_RockyArea(TileIndex tile) static void PlaceProc_LightHouse(TileIndex tile) { - if (!IsTileType(tile, MP_CLEAR) || IsSteepSlope(GetTileSlope(tile, NULL))) { + if (!IsTileType(tile, MP_CLEAR) || IsSteepSlope(GetTileSlope(tile, NULL)) || IsBridgeAbove(tile)) { return; } @@ -1148,7 +1149,7 @@ static void PlaceProc_LightHouse(TileIndex tile) static void PlaceProc_Transmitter(TileIndex tile) { - if (!IsTileType(tile, MP_CLEAR) || IsSteepSlope(GetTileSlope(tile, NULL))) { + if (!IsTileType(tile, MP_CLEAR) || IsSteepSlope(GetTileSlope(tile, NULL)) || IsBridgeAbove(tile)) { return; } |