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:
@@ -1594,6 +1594,7 @@ wizard mode: history menu for #wizwish and WIZKIT
|
|||||||
monster priests and wizards did not cast spells
|
monster priests and wizards did not cast spells
|
||||||
prevent phaseable monsters hiding deep inside nondiggable walls
|
prevent phaseable monsters hiding deep inside nondiggable walls
|
||||||
blessed potion of see invisible does not guarantee the intrinsic
|
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
|
Fixes to 3.7.0-x General Problems Exposed Via git Repository
|
||||||
|
|||||||
@@ -8862,7 +8862,7 @@ doset(void) /* changing options via menu by Per Liboriussen */
|
|||||||
enhance_menu_text(buf, sizeof buf, pass, bool_p,
|
enhance_menu_text(buf, sizeof buf, pass, bool_p,
|
||||||
&allopt[i]);
|
&allopt[i]);
|
||||||
add_menu(tmpwin, &nul_glyphinfo, &any, 0, 0,
|
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, "");
|
add_menu_str(tmpwin, "");
|
||||||
@@ -9067,7 +9067,7 @@ doset_add_menu(
|
|||||||
indent = !any.a_int ? " " : "";
|
indent = !any.a_int ? " " : "";
|
||||||
Sprintf(buf, fmtstr, indent, option, value);
|
Sprintf(buf, fmtstr, indent, option, value);
|
||||||
add_menu(win, &nul_glyphinfo, &any, 0, 0,
|
add_menu(win, &nul_glyphinfo, &any, 0, 0,
|
||||||
ATR_NONE, clr, buf, MENU_ITEMFLAGS_NONE);
|
ATR_NONE, clr, buf, MENU_ITEMFLAGS_SKIPINVERT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user