(svn r1353) -Fix: [1092707] placing rocks in scenario editor. You can place rocks on trees and vice versa

This commit is contained in:
darkvater
2005-01-03 21:26:09 +00:00
parent 1a29d7956c
commit 3d51f4d689
2 changed files with 4 additions and 5 deletions

View File

@@ -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);
}