fix the 'fix obscure secret corridor bug' commit

The fix to prevent finding secert corridors via secret door detection
from forgetting objects broke magic mapping.
This commit is contained in:
PatR
2024-08-26 21:27:54 -07:00
parent a5700805c6
commit 9b79e0be8d

View File

@@ -248,7 +248,8 @@ magic_map_background(coordxy x, coordxy y, int show)
else if (lev->typ == CORR && glyph == cmap_to_glyph(S_litcorr))
glyph = cmap_to_glyph(S_corr);
}
if (svl.level.flags.hero_memory && glyph_is_cmap(lev->glyph))
if (svl.level.flags.hero_memory
&& (glyph_is_unexplored(lev->glyph) || glyph_is_cmap(lev->glyph)))
lev->glyph = glyph;
if (show)
show_glyph(x, y, glyph);