diff options
author | Darkvater <Darkvater@openttd.org> | 2005-05-08 21:00:56 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-05-08 21:00:56 +0000 |
commit | 09a73b9955fd2e00616811737812748b576a7119 (patch) | |
tree | 331c023c5759fdf34a229cdcdb84d5058f72c1e1 | |
parent | d0139bb48ff9843b9800b2d07486e27e54d0f376 (diff) | |
download | openttd-09a73b9955fd2e00616811737812748b576a7119.tar.xz |
(svn r2284) - Fix (regression): [ 1197177 ] Scenario editor: desert add/remove tool removes industries. Fixed a bit too agressive desert generator. It still does remove the industry (sand's a bitch on machinery), but at least it does it cleanly :)
-rw-r--r-- | terraform_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/terraform_gui.c b/terraform_gui.c index df8acfe4a..10845c4d2 100644 --- a/terraform_gui.c +++ b/terraform_gui.c @@ -50,7 +50,7 @@ static void GenerateDesertArea(TileIndex end, TileIndex start) BEGIN_TILE_LOOP(tile, size_x, size_y, TILE_XY(sx, sy)) { if (GetTileType(tile) != MP_WATER) { SetMapExtraBits(tile, (_ctrl_pressed) ? 0 : 1); - DoClearSquare(tile); + DoCommandP(tile, 0, 0, NULL, CMD_LANDSCAPE_CLEAR); MarkTileDirtyByTile(tile); } } END_TILE_LOOP(tile, size_x, size_y, 0); |