summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-13 10:57:32 +0000
committerrubidium <rubidium@openttd.org>2009-05-13 10:57:32 +0000
commit111e62bba64bca75e6fd878136b8db371e7902d8 (patch)
treeb23df831ea16c8289912f23b995b1013d4569d74
parent1f3dce6f854240824951cd1476761b75a8c5f817 (diff)
downloadopenttd-111e62bba64bca75e6fd878136b8db371e7902d8.tar.xz
(svn r16290) -Fix [FS#2888]: unable to (re)set the desert state for watery tiles
-rw-r--r--src/terraform_gui.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp
index 94e15282a..d16c14046 100644
--- a/src/terraform_gui.cpp
+++ b/src/terraform_gui.cpp
@@ -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;
}