Prevent selecting all options in #optionsfull menu

No-one ever intentionally selected all entries in the options
menu.  Prevent it from happening by accident.
This commit is contained in:
Pasi Kallinen
2026-04-11 18:37:45 +03:00
parent f6e341546d
commit 9d27cfe8b8
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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);
}