From 9d27cfe8b819af6b216b0745a1460b08039af9dd Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 11 Apr 2026 18:37:45 +0300 Subject: [PATCH] Prevent selecting all options in #optionsfull menu No-one ever intentionally selected all entries in the options menu. Prevent it from happening by accident. --- doc/fixes3-7-0.txt | 1 + src/options.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 25782946e..7a152e09e 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1594,6 +1594,7 @@ wizard mode: history menu for #wizwish and WIZKIT monster priests and wizards did not cast spells prevent phaseable monsters hiding deep inside nondiggable walls blessed potion of see invisible does not guarantee the intrinsic +prevent selecting all options in #optionsfull menu Fixes to 3.7.0-x General Problems Exposed Via git Repository diff --git a/src/options.c b/src/options.c index 4d04efc1c..a2dc7cedf 100644 --- a/src/options.c +++ b/src/options.c @@ -8862,7 +8862,7 @@ doset(void) /* changing options via menu by Per Liboriussen */ enhance_menu_text(buf, sizeof buf, pass, bool_p, &allopt[i]); add_menu(tmpwin, &nul_glyphinfo, &any, 0, 0, - ATR_NONE, clr, buf, MENU_ITEMFLAGS_NONE); + ATR_NONE, clr, buf, MENU_ITEMFLAGS_SKIPINVERT); } add_menu_str(tmpwin, ""); @@ -9067,7 +9067,7 @@ doset_add_menu( indent = !any.a_int ? " " : ""; Sprintf(buf, fmtstr, indent, option, value); add_menu(win, &nul_glyphinfo, &any, 0, 0, - ATR_NONE, clr, buf, MENU_ITEMFLAGS_NONE); + ATR_NONE, clr, buf, MENU_ITEMFLAGS_SKIPINVERT); }