Changeset - r2361:411e73a3376d
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-08-24 18:47:26
tron@openttd.org
(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_)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
main_gui.c
Show inline comments
 
@@ -1216,25 +1216,25 @@ static void PlaceProc_RockyArea(TileInde
 

	
 
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);
 
	SndPlayTileFx(SND_1F_SPLAT, tile);
 
}
 

	
 
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);
 
	SndPlayTileFx(SND_1F_SPLAT, tile);
 
}
 

	
0 comments (0 inline, 0 general)