From: PatR Date: Wed, 1 Apr 2020 21:58:40 +0000 (-0700) Subject: restore 'use_inverse' option X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=689c3e67fe1dcb38699d3676edfe44bebbe99507;p=nethack restore 'use_inverse' option '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. --- diff --git a/doc/fixes37.0 b/doc/fixes37.0 index f59d67667..51981ad04 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -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 diff --git a/include/optlist.h b/include/optlist.h index fa247957d..f557b1120 100644 --- a/include/optlist.h +++ b/include/optlist.h @@ -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,