From: Pasi Kallinen Date: Fri, 15 Jan 2016 11:15:09 +0000 (+0200) Subject: bz24: Wrong floor descriptions on Planes when levitating and going down X-Git-Tag: NetHack-3.6.1_RC01~1020 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d866a2217b2fa12ae06f2b560a2b78e3df66c7d;p=nethack bz24: Wrong floor descriptions on Planes when levitating and going down --- diff --git a/src/do.c b/src/do.c index c5030f73a..bab6f04a3 100644 --- a/src/do.c +++ b/src/do.c @@ -919,7 +919,13 @@ dodown() ladder_down = (glyph_to_cmap(levl[u.ux][u.uy].glyph) == S_dnladder); } - floating_above(stairs_down ? "stairs" : ladder_down + if (Is_airlevel(&u.uz)) + You("are floating in the %s.", surface(u.ux, u.uy)); + else if (Is_waterlevel(&u.uz)) + You("are floating in %s.", + is_pool(u.ux, u.uy) ? "the water" : "a bubble of air"); + else + floating_above(stairs_down ? "stairs" : ladder_down ? "ladder" : surface(u.ux, u.uy)); return 0; /* didn't move */