(svn r16290) -Fix [FS#2888]: unable to (re)set the desert state for watery tiles

This commit is contained in:
rubidium 2009-05-13 10:57:32 +00:00
parent fe8ce10b70
commit 26cfdd3990

View File

@ -60,11 +60,9 @@ static void GenerateDesertArea(TileIndex end, TileIndex start)
_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;
}