]> granicus.if.org Git - nethack/commitdiff
restore 'use_inverse' option
authorPatR <rankin@nethack.org>
Wed, 1 Apr 2020 21:58:40 +0000 (14:58 -0700)
committerPatR <rankin@nethack.org>
Wed, 1 Apr 2020 21:58:40 +0000 (14:58 -0700)
'use_inverse' used to be unconditionally present but conditionally
had default value True for WIN32 and False for others.  The options
changes that moved things to optlist.h made it present for WIN32 and
absent for others.  Put it back, and change the default value to be
unconditionally True.

doc/fixes37.0
include/optlist.h

index f59d6766782aaccdb1aa4d43fc85079cf0ecf0bb..51981ad04aab12686194c9f9229419d23677030e 100644 (file)
@@ -1,4 +1,4 @@
-$NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.148 $ $NHDT-Date: 1585776162 2020/04/01 21:22:42 $
+$NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.149 $ $NHDT-Date: 1585778315 2020/04/01 21:58:35 $
 
 General Fixes and Modified Features
 -----------------------------------
@@ -140,6 +140,8 @@ grammar for messages about a monster removing items from a container was bad
 some new status conditions didn't always update when they should
 fix flipping non-existent stairs and ladders (github #311)
 fix door created into random wall or position opening into solid wall
+'use_inverse' option was accidentally made Windows-only; change it back to
+       being more general; change its default to True
 
 
 Platform- and/or Interface-Specific Fixes
index fa247957d0905eafc0d3150c0dc2691ae9ddc081..f557b1120cc1cc16c103f65529e14d8aa54bd79f 100644 (file)
@@ -490,13 +490,8 @@ pfx_##a,
 #endif
     NHOPTB(use_darkgray, 0, opt_out, set_in_config, On, Yes, No, No, NoAlias,
                 &iflags.wc2_darkgray)
-#ifdef WIN32
     NHOPTB(use_inverse, 0, opt_out, set_in_game, On, Yes, No, No, NoAlias,
                 &iflags.wc_inverse)
-#else
-    NHOPTB(use_inverse, 0, opt_in, set_in_game, On, No, No, No, NoAlias,
-                (boolean *) 0)
-#endif
     NHOPTC(vary_msgcount, 20, opt_in, set_gameview, No, Yes, No, No, NoAlias,
                 "show more old messages at a time")
     NHOPTB(verbose, 0, opt_out, set_in_game, On, Yes, No, No, NoAlias,