From d68bb738d248526715dd9b728ce4c6f94e47c8cb Mon Sep 17 00:00:00 2001 From: PatR Date: Wed, 16 Dec 2015 18:16:39 -0800 Subject: [PATCH] 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 instead of advancing to next page. Space was being assigned as the selection letter for class header lines, which made no sense. --- doc/fixes36.1 | 2 ++ src/o_init.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/fixes36.1 b/doc/fixes36.1 index 8be5a603c..f27e377eb 100644 --- a/doc/fixes36.1 +++ b/doc/fixes36.1 @@ -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 make a previously-discovered scroll written with marker while blind have its 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 diff --git a/src/o_init.c b/src/o_init.c index a6aef9f90..ec1f56f5a 100644 --- a/src/o_init.c +++ b/src/o_init.c @@ -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. */ /* NetHack may be freely redistributed. See license for details. */ @@ -688,8 +688,8 @@ rename_disco() if (oclass != prev_class) { any.a_int = 0; - add_menu(tmpwin, NO_GLYPH, &any, ' ', iflags.menu_headings, - ATR_NONE, let_to_name(oclass, FALSE, FALSE), + add_menu(tmpwin, NO_GLYPH, &any, 0, 0, iflags.menu_headings, + let_to_name(oclass, FALSE, FALSE), MENU_UNSELECTED); prev_class = oclass; } -- 2.50.1