mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r16290) -Fix [FS#2888]: unable to (re)set the desert state for watery tiles
This commit is contained in:
parent
fe8ce10b70
commit
26cfdd3990
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user