]> granicus.if.org Git - nethack/commitdiff
Water walking doesn't help in wall of water
authorPasi Kallinen <paxed@alt.org>
Sun, 13 Feb 2022 12:38:54 +0000 (14:38 +0200)
committerPasi Kallinen <paxed@alt.org>
Sun, 13 Feb 2022 12:38:54 +0000 (14:38 +0200)
src/hack.c

index f30a6adc7e3477619d8aabadd3d34b8ee7571d9e..cb9a84df2f0619fcb6c5df867da22c9c00d461a2 100644 (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;