bz24: Wrong floor descriptions on Planes when levitating and going down

This commit is contained in:
Pasi Kallinen
2016-01-15 13:15:13 +02:00
parent 17a4fc4492
commit 4d866a2217
+6
View File
@@ -919,6 +919,12 @@ dodown()
ladder_down = ladder_down =
(glyph_to_cmap(levl[u.ux][u.uy].glyph) == S_dnladder); (glyph_to_cmap(levl[u.ux][u.uy].glyph) == S_dnladder);
} }
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 floating_above(stairs_down ? "stairs" : ladder_down
? "ladder" ? "ladder"
: surface(u.ux, u.uy)); : surface(u.ux, u.uy));