From 65bdb2ce671bd03b79e1dda302d71a643dc65fbc Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 24 Aug 2005 18:47:26 +0000 Subject: [PATCH] (svn r2887) Fix regression: Two boolean expressions got flipped in r2595, which made it possible to place lighthouses and antennas everywhere BUT clear tiles (found and fixed by _Luca_) --- main_gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main_gui.c b/main_gui.c index 50252f3670..86fec3d1e5 100644 --- a/main_gui.c +++ b/main_gui.c @@ -1219,7 +1219,7 @@ static void PlaceProc_LightHouse(TileIndex tile) TileInfo ti; FindLandscapeHeightByTile(&ti, tile); - if (IsTileType(tile, MP_CLEAR) || IsSteepTileh(ti.tileh)) + if (!IsTileType(tile, MP_CLEAR) || IsSteepTileh(ti.tileh)) return; ModifyTile(tile, MP_SETTYPE(MP_UNMOVABLE) | MP_MAP5, 1); @@ -1231,7 +1231,7 @@ static void PlaceProc_Transmitter(TileIndex tile) TileInfo ti; FindLandscapeHeightByTile(&ti, tile); - if (IsTileType(tile, MP_CLEAR) || IsSteepTileh(ti.tileh)) + if (!IsTileType(tile, MP_CLEAR) || IsSteepTileh(ti.tileh)) return; ModifyTile(tile, MP_SETTYPE(MP_UNMOVABLE) | MP_MAP5, 0);