From: Daniel Mehrmann Date: Tue, 29 Jun 2004 22:29:41 +0000 (+0000) Subject: Added color lines if zippy used with xboard X-Git-Tag: v4.2.8~26 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=50b9a481ddbcf9951498211b63fbf10474faea92;p=xboard.git Added color lines if zippy used with xboard --- diff --git a/backend.c b/backend.c index 866b703..745a20b 100644 --- a/backend.c +++ b/backend.c @@ -1489,11 +1489,7 @@ read_from_ics(isr, closure, data, count, error) int buf_len; int next_out; int tkind; -#ifdef WIN32 - /* For zippy color lines of winboard - * cleanup for gcc compiler */ - int backup; -#endif + int backup; char *p; #ifdef WIN32 @@ -1750,19 +1746,19 @@ read_from_ics(isr, closure, data, count, error) oldi = i; if (appData.zippyTalk || appData.zippyPlay) { + /* Backup address for color zippy lines */ + backup = i; #if ZIPPY #ifdef WIN32 - /* Backup address for color zippy lines */ - backup = i; if (loggedOn == TRUE) if (ZippyControl(buf, &backup) || ZippyConverse(buf, &backup) || (appData.zippyPlay && ZippyMatch(buf, &backup))); #else - if (ZippyControl(buf, &i) || - ZippyConverse(buf, &i) || - (appData.zippyPlay && ZippyMatch(buf, &i))) { + if (ZippyControl(buf, &backup) || + ZippyConverse(buf, &backup) || + (appData.zippyPlay && ZippyMatch(buf, &backup))) { loggedOn = TRUE; - continue; + if (!appData.colorize) continue; } #endif #endif