feeling monsters while blind and levitating

<Someone> reported this during 3.4.0 beta.  If you are blind and levitating,
unseen monsters are shown as "I", just like when not levitating, but they
are never erased after they move, unlike not levitating.  Display this
case correctly as well.
This commit is contained in:
cohrs
2002-06-30 22:29:58 +00:00
parent 2c4306b4f9
commit a868473df6
2 changed files with 6 additions and 3 deletions

View File

@@ -536,7 +536,8 @@ 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,
* Similarly, if the hero digs a hole in a wall or feels a location
* that used to contain an unseen monster. In these cases,
* 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
@@ -557,8 +558,9 @@ 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)) {
} else if ((lev->glyph >= cmap_to_glyph(S_stone) &&
lev->glyph < cmap_to_glyph(S_room)) ||
glyph_is_invisible(levl[x][y].glyph)) {
lev->glyph = lev->waslit ? cmap_to_glyph(S_room) :
cmap_to_glyph(S_stone);
show_glyph(x,y,lev->glyph);