From c038522b9ddd87979422bfa07ce08d9696066353 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 15 Jan 2016 13:47:16 +0200 Subject: [PATCH] Fix bz65: Water behaves strangely when hurtling out of air bubble When levitating on the plane of water, get an unattached iron ball, and throw it. You'll hurtle in the opposite direction, out of the air bubble and into water, but don't drown. --- src/dothrow.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dothrow.c b/src/dothrow.c index fa02a1186..f9ee2e374 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -621,6 +621,12 @@ int x, y; newsym(ox, oy); /* update old position */ vision_recalc(1); /* update for new position */ flush_screen(1); + + if (levl[x][y].typ == WATER && Is_waterlevel(&u.uz)) { + drown(); + return FALSE; + } + /* FIXME: * Each trap should really trigger on the recoil if * it would trigger during normal movement. However,