Water walking doesn't help in wall of water

This commit is contained in:
Pasi Kallinen
2022-02-13 14:38:54 +02:00
parent 7302b87dd5
commit 3b2e4d682d

View File

@@ -2466,7 +2466,7 @@ pooleffects(boolean newspot) /* true if called by spoteffects */
if (is_lava(u.ux, u.uy)) {
if (lava_effects())
return TRUE;
} else if (!Wwalking
} else if ((!Wwalking || levl[u.ux][u.uy].typ == WATER)
&& (newspot || !u.uinwater || !(Swimming || Amphibious))) {
if (drown())
return TRUE;