From 699473e03f7c6d2015c42303ec54fc92c1740e06 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 10 Apr 2023 12:23:43 +0300 Subject: [PATCH] Moving to water is not dangerous if already underwater --- src/hack.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hack.c b/src/hack.c index 3edfb66a2..7c4f290ff 100644 --- a/src/hack.c +++ b/src/hack.c @@ -1678,6 +1678,9 @@ swim_move_danger(coordxy x, coordxy y) boolean liquid_wall = IS_WATERWALL(newtyp) || newtyp == LAVAWALL; + if (Underwater && (is_pool(x,y) || IS_WATERWALL(newtyp))) + return FALSE; + if ((newtyp != u_simple_floortyp(u.ux, u.uy)) && !Stunned && !Confusion && levl[x][y].seenv && (is_pool(x, y) || is_lava(x, y) || liquid_wall)) {