From f777aceb7465875387207c21a36b4b6bc59c539f Mon Sep 17 00:00:00 2001 From: cohrs Date: Sat, 23 Mar 2002 22:27:54 +0000 Subject: [PATCH] wall symbol not replaced when digging while blind and levitating - this was reported to the mailing list just before 3.4.0 shipped - treat in a manner similar to chopping a boulder while blind and levitating --- doc/fixes34.1 | 1 + src/display.c | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 68aab9bc2..d6ab81e05 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -13,6 +13,7 @@ allow both wishing and genocide to accept either "none" or "nothing" when left word in format string in get_wet() causing "The spellbook fadefades" two bad wizkit items in a row shouldn't make the user hit space many times kicking thrones no longer loosens rocks +wall symbol not replaced when digging while blind and levitating Platform- and/or Interface-Specific Fixes diff --git a/src/display.c b/src/display.c index 268f7cf6b..709e68d00 100644 --- a/src/display.c +++ b/src/display.c @@ -536,6 +536,12 @@ feel_location(x, y) * underneath if already seen. Otherwise, show the appropriate * floor symbol. * + * Similarly, if the hero digs a hole in a wall. In this case, + * there's no reason to assume anything was underneath, so + * just show the appropriate floor symbol. If something was + * embedded in the wall, the glyph will probably already + * reflect that. Don't change the symbol in this case. + * * This isn't quite correct. If the boulder was on top of some * other objects they should be seen once the boulder is removed. * However, we have no way of knowing that what is there now @@ -551,6 +557,11 @@ feel_location(x, y) cmap_to_glyph(S_stone); show_glyph(x,y,lev->glyph); } + } else if (lev->glyph >= cmap_to_glyph(S_stone) && + lev->glyph < cmap_to_glyph(S_room)) { + lev->glyph = lev->waslit ? cmap_to_glyph(S_room) : + cmap_to_glyph(S_stone); + show_glyph(x,y,lev->glyph); } } else { /* We feel it (I think hallways are the only things left). */ -- 2.40.0