From 3d51f4d689c1ee9d6214efbcdb43e1fbe9908dd9 Mon Sep 17 00:00:00 2001 From: darkvater Date: Mon, 3 Jan 2005 21:26:09 +0000 Subject: (svn r1353) -Fix: [1092707] placing rocks in scenario editor. You can place rocks on trees and vice versa --- main_gui.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main_gui.c') 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); } -- cgit v1.2.3-54-g00ecf