mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
(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 :)
This commit is contained in:
parent
74671bd2c9
commit
5f6de3e47c
@ -50,7 +50,7 @@ static void GenerateDesertArea(TileIndex end, TileIndex start)
|
|||||||
BEGIN_TILE_LOOP(tile, size_x, size_y, TILE_XY(sx, sy)) {
|
BEGIN_TILE_LOOP(tile, size_x, size_y, TILE_XY(sx, sy)) {
|
||||||
if (GetTileType(tile) != MP_WATER) {
|
if (GetTileType(tile) != MP_WATER) {
|
||||||
SetMapExtraBits(tile, (_ctrl_pressed) ? 0 : 1);
|
SetMapExtraBits(tile, (_ctrl_pressed) ? 0 : 1);
|
||||||
DoClearSquare(tile);
|
DoCommandP(tile, 0, 0, NULL, CMD_LANDSCAPE_CLEAR);
|
||||||
MarkTileDirtyByTile(tile);
|
MarkTileDirtyByTile(tile);
|
||||||
}
|
}
|
||||||
} END_TILE_LOOP(tile, size_x, size_y, 0);
|
} END_TILE_LOOP(tile, size_x, size_y, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user