From ed8ce13d8fb4c7427ab494949494e8270832214c Mon Sep 17 00:00:00 2001 From: cohrs Date: Thu, 2 Oct 2003 04:23:59 +0000 Subject: [PATCH] eels in lava 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 | 1 + src/sp_lev.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fixes35.0 b/doc/fixes35.0 index 6c2502a0e..997156998 100644 --- a/doc/fixes35.0 +++ b/doc/fixes35.0 @@ -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 diff --git a/src/sp_lev.c b/src/sp_lev.c index 435609f3e..b42903aa5 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -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;