From 0f01260605c9393068e07a308840a9b6f8864aa9 Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 6 Nov 2025 18:44:12 -0500 Subject: [PATCH] Revert "blank perm_invent after repeating spell cast" This reverts commit 7763f4c5b04e6d300f21277ca549008453038337. --- include/hack.h | 1 - src/invent.c | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/hack.h b/include/hack.h index 12da18c62..361b95cd3 100644 --- a/include/hack.h +++ b/include/hack.h @@ -799,7 +799,6 @@ struct sinfo { int in_role_selection; /* role/race/&c selection menus in progress */ int in_getlin; /* inside interface getlin routine */ int in_sanity_check; /* for impossible() during sanity checking */ - int in_update_inventory; /* inside update_inventory() function */ int config_error_ready; /* config_error_add is ready, available */ int beyond_savefile_load; /* set when past savefile loading */ int savefile_completed; /* savefile has completed writing */ diff --git a/src/invent.c b/src/invent.c index fbbbe9ab9..5d62567f2 100644 --- a/src/invent.c +++ b/src/invent.c @@ -2703,12 +2703,10 @@ update_inventory(void) * attempt in the shop code handled it for unpaid items but not for * paying for used-up shop items; that follows a different code path.) */ - program_state.in_update_inventory = TRUE; save_suppress_price = iflags.suppress_price; iflags.suppress_price = 0; (*windowprocs.win_update_inventory)(0); iflags.suppress_price = save_suppress_price; - program_state.in_update_inventory = FALSE; } /* the #perminv command - call interface's persistent inventory routine */ @@ -4026,7 +4024,7 @@ display_inventory(const char *lets, boolean want_reply) { struct _cmd_queue *cmdq = cmdq_pop(); - if (cmdq && !program_state.in_update_inventory) { + if (cmdq) { if (cmdq->typ == CMDQ_KEY) { struct obj *otmp;