]> granicus.if.org Git - nethack/commitdiff
'O' vs 'altmeta'
authorPatR <rankin@nethack.org>
Mon, 29 Mar 2021 16:17:33 +0000 (09:17 -0700)
committerPatR <rankin@nethack.org>
Mon, 29 Mar 2021 16:17:33 +0000 (09:17 -0700)
I accidentally toggled the 'altmeta' option On and got this
non sequitur result when trying to toggle it back Off:
|The altmeta option may not both have a value and be negated.

doc/fixes37.0
include/optlist.h

index eca4bc778433053d2bb7cecbe56038fef8b6ec8c..867d924d63e80bac1a44d2dd94b1d70321c5eacb 100644 (file)
@@ -1,4 +1,4 @@
-NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.478 $ $NHDT-Date: 1615911117 2021/03/16 16:11:57 $
+NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.488 $ $NHDT-Date: 1617034646 2021/03/29 16:17:26 $
 
 General Fixes and Modified Features
 -----------------------------------
@@ -559,6 +559,7 @@ avoid segfault during error reporting for bad 'O' value(s) after theme rooms
 avoid complaints of "nothing to foo" for 'force_invmenu' if there are no
        likely candidates to foo with but there are hidden acceptable choices
 avoid "Not carrying anything.  Never mind." for 'force_invmenu'
+'altmeta' option could be toggled On but once On could not be toggled back Off
 
 curses: 'msg_window' option wasn't functional for curses unless the binary
        also included tty support
index 2dc3cc9408f331aaf88ff3ed819dd6ad8277058a..123c5ad69f0cc56120d4c763e19717f47a4536ca 100644 (file)
@@ -91,10 +91,10 @@ opt_##a,
     NHOPTC(altkeyhandler, 20, opt_in, set_in_game, No, Yes, No, No, NoAlias,
                "alternate key handler")
 #ifdef ALTMETA
-    NHOPTB(altmeta, 0, opt_out, set_in_game, Off, No, No, No, NoAlias,
+    NHOPTB(altmeta, 0, opt_out, set_in_game, Off, Yes, No, No, NoAlias,
                &iflags.altmeta)
 #else
-    NHOPTB(altmeta, 0, opt_out, set_in_config, Off, No, No, No, NoAlias,
+    NHOPTB(altmeta, 0, opt_out, set_in_config, Off, Yes, No, No, NoAlias,
                (boolean *) 0)
 #endif
     NHOPTB(ascii_map, 0, opt_in, set_in_game, Off, Yes, No, No, NoAlias,