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:
@@ -33,6 +33,7 @@ can quiver coins when GOLDOBJ is defined
|
|||||||
grammar, spelling and other typos
|
grammar, spelling and other typos
|
||||||
oracle and rumor regarding priestly donations
|
oracle and rumor regarding priestly donations
|
||||||
keep various delayed killers separate to avoid mixed up messages
|
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
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+1
-1
@@ -222,7 +222,7 @@ register int humidity;
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
if (humidity & WET) {
|
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 TRUE;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user