eels in lava

<Someone> reported that randomly placed aquatic monsters can end up in
lava.  The placement code allowed lava whenever the WET flag was passed to
it.  This was so passing (WET|DRY) would match all locations, but it's not
appropriate for when only the flag WET is used.  Since we have no levels
currently affected by this bug, I fixed it only in the trunk.
This commit is contained in:
cohrs
2003-10-02 04:23:59 +00:00
parent 6c734c22eb
commit ed8ce13d8f
2 changed files with 2 additions and 1 deletions

View File

@@ -222,7 +222,7 @@ register int humidity;
return TRUE;
}
if (humidity & WET) {
if (is_pool(x,y) || is_lava(x,y))
if (is_pool(x,y) || ((humidity & DRY) && is_lava(x,y)))
return TRUE;
}
return FALSE;