From: H.G. Muller Date: Thu, 19 Nov 2009 03:12:25 +0000 (-0800) Subject: fix double start of zippy engine after switch to gothic X-Git-Tag: master-20100118~8 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=4c2a4a8be3521597c9b19749cfdc998108824f9e;p=xboard.git fix double start of zippy engine after switch to gothic In ICS mode we now switch to the proper variant as soon as we receive the generic game-start message, to prevent a mismatch when the first board is received (which would trigger fetching of a move list). --- diff --git a/backend.c b/backend.c index 74898c8..937ba59 100644 --- a/backend.c +++ b/backend.c @@ -3155,6 +3155,7 @@ read_from_ics(isr, closure, data, count, error) strncmp(why, "Continuing ", 11) == 0) { gs_gamenum = gamenum; strcpy(gs_kind, strchr(why, ' ') + 1); + VariantSwitch(boards[currentMove], StringToVariant(gs_kind)); // [HGM] variantswitch: even before we get first board #if ZIPPY if (appData.zippyPlay) { ZippyGameStart(whitename, blackname);