]> granicus.if.org Git - nethack/commitdiff
fix 'doterrain menu bug'
authorPatR <rankin@nethack.org>
Tue, 29 Dec 2015 23:09:50 +0000 (15:09 -0800)
committerPatR <rankin@nethack.org>
Tue, 29 Dec 2015 23:09:50 +0000 (15:09 -0800)
From a report sent directly to devteam:  the #terrain command had the
same bug as the '`' command (which was one of the very first ones
reported):  impossible("add_menu called before start_menu").  Only X11
notices.

doc/fixes36.1
src/cmd.c

index 9b33f06c8a2b9befc4b9fa66b02dd310af8b5a43..5465960ad7013a5be101599d6bb3b0deec144d5f 100644 (file)
@@ -92,8 +92,8 @@ MacOSX: initial binary release was built from out of date source code that
        had 'BETA' and 'DEBUG' inappropriately enabled
 MacOSX: force TIMED_DELAY build option on so that 'runmode' run-time option
        is functional
-X11: core bug for '`' (backtick) command was only noticed by X11 interface,
-       which issued impossible message "add_menu: called before start_menu"
+X11: core bug for '`' (backtick) and #terrain commands was only noticed by
+       X11 interface: impossible "add_menu: called before start_menu"
 
 
 General New Features
index 51fd17f7081b695bd3d07a569e5ca14842ce5bff..191ab71f3443466f3767d5756f8e808efc048de3 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -1176,6 +1176,7 @@ doterrain(VOID_ARGS)
      *  a legend for the levl[][].typ codes dump
      */
     men = create_nhwindow(NHW_MENU);
+    start_menu(men);
     any = zeroany;
     any.a_int = 1;
     add_menu(men, NO_GLYPH, &any, 0, 0, ATR_NONE,