From 1c679779f454d9d90961bd0c448ebfdcdfb52fd5 Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 20 Apr 2025 19:36:56 -0700 Subject: [PATCH] final disclosure of inventory vs force_invmenu It seems surpristing that no one has noticed this since the code that is responsible has been present for six months. Inventory list at end of game included bogus "? - (list likely candidates)". --- doc/fixes3-7-0.txt | 2 ++ src/end.c | 1 + 2 files changed, 3 insertions(+) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 32b735014..0787fcea3 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -2110,6 +2110,8 @@ when attacking a displacer beast, using the 'F' forcefight prefix prevented it successfully disarming a chest trap was clearing the chest's 'tknown' bit instead of setting it; likewise when failing to disarm triggered and used up the trap +when game ended with 'force_invmenu' On, final disclosure of inventory would + contain spurious menu entry "? - (list likely candidates)" Fixes to 3.7.0-x Platform and/or Interface Problems Exposed Via git Repository diff --git a/src/end.c b/src/end.c index 35dfc1803..57b189d12 100644 --- a/src/end.c +++ b/src/end.c @@ -630,6 +630,7 @@ disclose(int how, boolean taken) if (c == 'y') { /* caller has already ID'd everything; we pass 'want_reply=True' to force display_pickinv() to avoid using WIN_INVENT */ + iflags.force_invmenu = FALSE; (void) display_inventory((char *) 0, TRUE); container_contents(gi.invent, TRUE, TRUE, FALSE); }