From: nethack.allison Date: Thu, 2 Jan 2003 12:21:48 +0000 (+0000) Subject: Allow msg_window option to be silently ignored by non-tty ports. X-Git-Tag: MOVE2GIT~2267 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06ad5107dc898f1a6401dd72bbc3fb5376c31b66;p=nethack Allow msg_window option to be silently ignored by non-tty ports. --- diff --git a/src/options.c b/src/options.c index 04bd4e608..02b03b8c0 100644 --- a/src/options.c +++ b/src/options.c @@ -1090,10 +1090,11 @@ boolean tinitial, tfrom_file; return; } -#ifdef TTY_GRAPHICS fullname="msg_window"; /* msg_window:single, combo, full or reversed */ if (match_optname(opts, fullname, 4, TRUE)) { + /* allow option to be silently ignored by non-tty ports */ +#ifdef TTY_GRAPHICS int tmp; if (!(op = string_for_opt(opts, TRUE))) { tmp = negated ? 's' : 'f'; @@ -1120,9 +1121,9 @@ boolean tinitial, tfrom_file; default: badoption(opts); } +#endif return; } -#endif /* WINCAP * setting font options */