mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-28 16:09:36 +01:00
(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_)
This commit is contained in:
parent
b45aeb5c36
commit
65bdb2ce67
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user