# HG changeset patch # User Darkvater # Date 1115586056 0 # Node ID 93fde4f32bfc02e42d57ad90ed6ef0c772da1154 # Parent 598bf208ad44e35d7700dcf14107173d6c1e34ff (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 :) diff -r 598bf208ad44 -r 93fde4f32bfc terraform_gui.c --- a/terraform_gui.c Sun May 08 20:53:02 2005 +0000 +++ b/terraform_gui.c Sun May 08 21:00:56 2005 +0000 @@ -50,7 +50,7 @@ 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);