From: nhmall Date: Tue, 2 Jun 2015 22:20:07 +0000 (-0400) Subject: make option show as disabled X-Git-Tag: NetHack-3.6.0_RC01~300 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fee1259e60364ee7e956af7ee5fa613479f152a6;p=nethack make option show as disabled Changes to be committed: modified: src/options.c make option show as disabled if compile time options aren't defined. --- diff --git a/src/options.c b/src/options.c index b8aa76833..0c89826cd 100644 --- a/src/options.c +++ b/src/options.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 options.c $NHDT-Date: 1433280017 2015/06/02 21:20:17 $ $NHDT-Branch: status_hilite $:$NHDT-Revision: 1.215 $ */ +/* NetHack 3.6 options.c $NHDT-Date: 1433283602 2015/06/02 22:20:02 $ $NHDT-Branch: master $:$NHDT-Revision: 1.216 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -196,10 +196,10 @@ static struct Bool_Opt { { "sparkle", &flags.sparkle, TRUE, SET_IN_GAME }, { "splash_screen", &iflags.wc_splash_screen, TRUE, DISP_IN_GAME }, /*WC*/ { "standout", &flags.standout, FALSE, SET_IN_GAME }, -#ifdef STATUS_VIA_WINDOWPORT -#ifdef STATUS_HILITES +#if defined(STATUS_VIA_WINDOWPORT) && defined(STATUS_HILITES) { "statushilites", &iflags.use_status_hilites, TRUE, SET_IN_GAME }, -#endif +#else + { "statushilites", &iflags.use_status_hilites, FALSE, DISP_IN_GAME }, #endif { "tiled_map", &iflags.wc_tiled_map, PREFER_TILED, DISP_IN_GAME }, /*WC*/ { "time", &flags.time, FALSE, SET_IN_GAME },