]> granicus.if.org Git - nethack/commitdiff
eels in lava
authorcohrs <cohrs>
Thu, 2 Oct 2003 04:23:59 +0000 (04:23 +0000)
committercohrs <cohrs>
Thu, 2 Oct 2003 04:23:59 +0000 (04:23 +0000)
<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.

doc/fixes35.0
src/sp_lev.c

index 6c2502a0e11021227a0d63822f45ac6a9e6540b4..9971569983520283eb57a14b24a384bdb858d4d3 100644 (file)
@@ -33,6 +33,7 @@ can quiver coins when GOLDOBJ is defined
 grammar, spelling and other typos
 oracle and rumor regarding priestly donations
 keep various delayed killers separate to avoid mixed up messages
+don't place randomly-placed aquatic monsters in lava on special levels
 
 
 Platform- and/or Interface-Specific Fixes
index 435609f3e5e284595f82ac8a315b73d189dab005..b42903aa54a12b5e9ad53f699ccabde30a140e4f 100644 (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;