Changeset - r11885:18b256159d2b
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-05-13 10:57:32
rubidium@openttd.org
(svn r16290) -Fix [FS#2888]: unable to (re)set the desert state for watery tiles
1 file changed with 3 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/terraform_gui.cpp
Show inline comments
 
@@ -60,11 +60,9 @@ static void GenerateDesertArea(TileIndex
 

	
 
	_generating_world = true;
 
	BEGIN_TILE_LOOP(tile, size_x, size_y, TileXY(sx, sy)) {
 
		if (GetTileType(tile) != MP_WATER) {
 
			SetTropicZone(tile, (_ctrl_pressed) ? TROPICZONE_NORMAL : TROPICZONE_DESERT);
 
			DoCommandP(tile, 0, 0, CMD_LANDSCAPE_CLEAR);
 
			MarkTileDirtyByTile(tile);
 
		}
 
		SetTropicZone(tile, (_ctrl_pressed) ? TROPICZONE_NORMAL : TROPICZONE_DESERT);
 
		DoCommandP(tile, 0, 0, CMD_LANDSCAPE_CLEAR);
 
		MarkTileDirtyByTile(tile);
 
	} END_TILE_LOOP(tile, size_x, size_y, 0);
 
	_generating_world = false;
 
}
0 comments (0 inline, 0 general)