From 737294a5176d79f4fbcc1d4c38700c859b554992 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Sat, 28 Sep 2002 09:35:22 +0000 Subject: [PATCH] build fix --- win/tty/wintty.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/win/tty/wintty.c b/win/tty/wintty.c index 8990483e1..a08028887 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)wintty.c 3.4 2002/08/04 */ +/* SCCS Id: @(#)wintty.c 3.4 2002/09/27 */ /* Copyright (c) David Cohrs, 1991 */ /* NetHack may be freely redistributed. See license for details. */ @@ -2447,11 +2447,13 @@ tty_print_glyph(window, x, y, glyph) if (reverse_on) { term_end_attr(ATR_INVERSE); +#ifdef TEXTCOLOR /* turn off color as well, ATR_INVERSE may have done this already */ if(ttyDisplay->color != NO_COLOR) { term_end_color(); ttyDisplay->color = NO_COLOR; } +#endif } wins[window]->curx++; /* one character over */