diff options
author | darkvater <darkvater@openttd.org> | 2005-01-03 21:26:09 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2005-01-03 21:26:09 +0000 |
commit | 52c87a0330eb4ef533030e8fd18fb349550974cc (patch) | |
tree | 6a8389669a7739afd99e94613049a61881c405c5 /main_gui.c | |
parent | 1ee725ef3500348f00d86b9aa42e0ff0e064a737 (diff) | |
download | openttd-52c87a0330eb4ef533030e8fd18fb349550974cc.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.c | 5 |
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); } |