summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-01-03 21:26:09 +0000
committerdarkvater <darkvater@openttd.org>2005-01-03 21:26:09 +0000
commit3d51f4d689c1ee9d6214efbcdb43e1fbe9908dd9 (patch)
tree6a8389669a7739afd99e94613049a61881c405c5 /main_gui.c
parent1a29d7956c4834680ce1c18885c123d1c3aa9ad8 (diff)
downloadopenttd-3d51f4d689c1ee9d6214efbcdb43e1fbe9908dd9.tar.xz
(svn r1353) -Fix: [1092707] placing rocks in scenario editor. You can place rocks on trees and vice versa
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main_gui.c b/main_gui.c
index 6e8a5e04e..91c7bcc48 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -1202,11 +1202,10 @@ static void PlaceProc_LowerBigLand(uint tile)
static void PlaceProc_RockyArea(uint tile)
{
- if (!IS_TILETYPE(tile, MP_CLEAR))
+ if (!IS_TILETYPE(tile, MP_CLEAR) && !IS_TILETYPE(tile, MP_TREES))
return;
- _map5[tile] = (_map5[tile] & ~0x1C) | 0xB;
- MarkTileDirtyByTile(tile);
+ ModifyTile(tile, MP_SETTYPE(MP_CLEAR) | MP_MAP5, (_map5[tile] & ~0x1C) | 0xB);
SndPlayTileFx(SND_1F_SPLAT, tile);
}