fix #H4095 - naming discoveries list
The menu for picking an item to name when using the "on discoveries list" choice for #name or C when that list spanned multiple pages was exiting for <space> instead of advancing to next page. Space was being assigned as the selection letter for class header lines, which made no sense.
This commit is contained in:
@@ -34,6 +34,8 @@ getpos() complaint about invalid movement keystroke didn't describe meta-chars
|
|||||||
'realtime' value in xlogfile was incorrect if 'checkpoint' option was active
|
'realtime' value in xlogfile was incorrect if 'checkpoint' option was active
|
||||||
make a previously-discovered scroll written with marker while blind have its
|
make a previously-discovered scroll written with marker while blind have its
|
||||||
label known so it can be read while blind
|
label known so it can be read while blind
|
||||||
|
#name or C for discoveries list that spanned multiple pages would exit on
|
||||||
|
space instead of advancing to next page (workaround: use '>' instead)
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 o_init.c $NHDT-Date: 1449588093 2015/12/08 15:21:33 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.21 $ */
|
/* NetHack 3.6 o_init.c $NHDT-Date: 1450318588 2015/12/17 02:16:28 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.22 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -688,8 +688,8 @@ rename_disco()
|
|||||||
|
|
||||||
if (oclass != prev_class) {
|
if (oclass != prev_class) {
|
||||||
any.a_int = 0;
|
any.a_int = 0;
|
||||||
add_menu(tmpwin, NO_GLYPH, &any, ' ', iflags.menu_headings,
|
add_menu(tmpwin, NO_GLYPH, &any, 0, 0, iflags.menu_headings,
|
||||||
ATR_NONE, let_to_name(oclass, FALSE, FALSE),
|
let_to_name(oclass, FALSE, FALSE),
|
||||||
MENU_UNSELECTED);
|
MENU_UNSELECTED);
|
||||||
prev_class = oclass;
|
prev_class = oclass;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user