From 594d6b663cd05c8c31c5566b43d58284f1d18367 Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 2 Feb 2008 20:15:20 +0000 Subject: (svn r12043) -Fix [FS#1736]: allow building transmitters and lighthouses on tree tiles --- src/terraform_gui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/terraform_gui.cpp') diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp index 73c6d645a..3a28abc40 100644 --- a/src/terraform_gui.cpp +++ b/src/terraform_gui.cpp @@ -388,7 +388,8 @@ static void PlaceProc_RockyArea(TileIndex tile) static void PlaceProc_LightHouse(TileIndex tile) { - if (!IsTileType(tile, MP_CLEAR) || GetTileSlope(tile, NULL) != SLOPE_FLAT || IsBridgeAbove(tile)) { + /* not flat || not(trees || clear without bridge above) */ + if (GetTileSlope(tile, NULL) != SLOPE_FLAT || !(IsTileType(tile, MP_TREES) || (IsTileType(tile, MP_CLEAR) && !IsBridgeAbove(tile)))) { return; } @@ -399,7 +400,8 @@ static void PlaceProc_LightHouse(TileIndex tile) static void PlaceProc_Transmitter(TileIndex tile) { - if (!IsTileType(tile, MP_CLEAR) || GetTileSlope(tile, NULL) != SLOPE_FLAT || IsBridgeAbove(tile)) { + /* not flat || not(trees || clear without bridge above) */ + if (GetTileSlope(tile, NULL) != SLOPE_FLAT || !(IsTileType(tile, MP_TREES) || (IsTileType(tile, MP_CLEAR) && !IsBridgeAbove(tile)))) { return; } -- cgit v1.2.3-54-g00ecf