From 121cf75d39f3be1ef9ffb49146d975a00a7cf495 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 29 Feb 2024 18:29:40 +0200 Subject: [PATCH] Minor changes to mention_map Disable it during screen redraw. Always use the message coordinates with it, even if accessiblemsg is off. --- src/display.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/display.c b/src/display.c index aaca92865..c875394a1 100644 --- a/src/display.c +++ b/src/display.c @@ -1940,6 +1940,7 @@ show_glyph(coordxy x, coordxy y, int glyph) oldglyph = gg.gbuf[y][x].glyphinfo.glyph; if (a11y.glyph_updates && !a11y.mon_notices_blocked + && !gp.program_state.in_docrt && (oldglyph != glyph || gg.gbuf[y][x].gnew)) { int c = glyph_to_cmap(glyph); if ((glyph_is_nothing(oldglyph) || glyph_is_unexplored(oldglyph) @@ -1987,10 +1988,13 @@ show_glyph(coordxy x, coordxy y, int glyph) coord cc; int sym = 0; const char *firstmatch = 0; + boolean tmp_accessiblemsg = a11y.accessiblemsg; + a11y.accessiblemsg = TRUE; cc.x = x, cc.y = y; do_screen_description(cc, TRUE, sym, buf, &firstmatch, NULL); pline_xy(x, y, "%s.", firstmatch); + a11y.accessiblemsg = tmp_accessiblemsg; } }