spot_monster messages while saving

The 'spot_monster' option (extra feedback for "accessibility") was
causing messages to be delivered during save, and they could end up
triggering unwanted "--More--" interruptions for tty.

I couldn't reproduce it but it was easy to see where it would happen.
This shuts such messages off in two ways.  Only one should be needed
but I'm not sure which one it ought to be.
This commit is contained in:
PatR
2024-10-03 23:15:24 -07:00
parent dcf18b2b69
commit 529de54277
2 changed files with 6 additions and 0 deletions

View File

@@ -1853,6 +1853,10 @@ show_glyph(coordxy x, coordxy y, int glyph)
boolean show_glyph_change = FALSE;
int oldglyph;
/* don't process map glyphs when saving, restoring, or in_mklev */
if (suppress_map_output())
return;
//if (glyph == 3972 || glyph == 3988)
// __debugbreak();
/*

View File

@@ -87,6 +87,7 @@ dosave0(void)
int res = 0;
program_state.saving++; /* inhibit status and perm_invent updates */
notice_mon_off();
/* we may get here via hangup signal, in which case we want to fix up
a few of things before saving so that they won't be restored in
an improper state; these will be no-ops for normal save sequence */
@@ -234,6 +235,7 @@ dosave0(void)
res = 1;
done:
notice_mon_on();
program_state.saving--;
return res;
}