From 9b79e0be8df5b692cdd6fddbf825f7ab13608037 Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 26 Aug 2024 21:27:54 -0700 Subject: [PATCH] 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. --- src/display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/display.c b/src/display.c index fc4db6f7f..0e82a6cfa 100644 --- a/src/display.c +++ b/src/display.c @@ -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);