From 001ee7d9a6e1df467d48fd30cda74ded4e939d7c Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 2 May 2011 15:00:03 +0200 Subject: [PATCH] Fix zippy bughouse partner bug The patchs to subject Zippy messages to coloriation was faulty, because there were messages recognized by zippy that were not colorized, and such messages would then not be 'read away' after zippy recognition (except for the first character). As a result the messages were processed over and over again. --- backend.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 6c68aa5..43379fc 100644 --- a/backend.c +++ b/backend.c @@ -2983,9 +2983,9 @@ read_from_ics(isr, closure, data, count, error) } } // [HGM] chat: end of patch + backup = i; if (appData.zippyTalk || appData.zippyPlay) { /* [DM] Backup address for color zippy lines */ - backup = i; #if ZIPPY if (loggedOn == TRUE) if (ZippyControl(buf, &backup) || ZippyConverse(buf, &backup) || @@ -3150,6 +3150,8 @@ read_from_ics(isr, closure, data, count, error) continue; } + if(i < backup) { i = backup; continue; } // [HGM] for if ZippyControl matches, but the colorie code doesn't + if (looking_at(buf, &i, "\\ ")) { if (prevColor != ColorNormal) { if (oldi > next_out) { -- 1.7.0.4