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:
@@ -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;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user