From: nhmall Date: Sun, 31 Jan 2016 23:16:13 +0000 (-0500) Subject: typo bit nttty.c X-Git-Tag: NetHack-3.6.1_RC01~967 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5774804524f0a83eb9b25d10b98cdcdb1b3f7d76;p=nethack typo bit nttty.c --- diff --git a/sys/winnt/nttty.c b/sys/winnt/nttty.c index d6535adf8..9e6e70e70 100644 --- a/sys/winnt/nttty.c +++ b/sys/winnt/nttty.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 nttty.c $NHDT-Date: 1454281677 2016/01/31 23:07:57 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.65 $ */ +/* NetHack 3.6 nttty.c $NHDT-Date: 1454282169 2016/01/31 23:16:09 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.66 $ */ /* Copyright (c) NetHack PC Development Team 1993 */ /* NetHack may be freely redistributed. See license for details. */ @@ -734,7 +734,7 @@ int has_color(int color) { #ifdef TEXTCOLOR - if ((color >= 0) || (color < CLR_MAX)) + if ((color >= 0) && (color < CLR_MAX)) return 1; #else if ((color == CLR_BLACK) || (color == CLR_WHITE))