unused variable: g.restoring

Get rid of the last reference to 'g.restoring' (which managed to
unintentionally survive the change to 'g.program_state.restoring').

Also have suppress_map_output() check 'g.program_state.saving' and
switch the couple of checks against that flag to use the function.
This commit is contained in:
PatR
2021-10-05 01:57:27 -07:00
parent ccfddd47de
commit 01cb9d312f
6 changed files with 11 additions and 12 deletions

View File

@@ -2346,12 +2346,12 @@ learn_unseen_invent(void)
/* persistent inventory window is maintained by interface code;
'update_inventory' used to be a macro for
(*windowprocs.win_update_inventory) but the restore hackery
was getting out of hand; this is now a central call point */
(*windowprocs.win_update_inventory) but the restore hackery to suppress
screen updates was getting out of hand; this is now a central call point */
void
update_inventory(void)
{
if (g.program_state.saving || g.program_state.restoring)
if (suppress_map_output()) /* despite name, used for perm_invent too */
return;
/*