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: v4.4.2.20091122~7 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=95c0cb6d74757efa79c41a0513a8198def61ba13;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 7769904..c2f46a0 100755 --- a/backend.c +++ b/backend.c @@ -3134,6 +3134,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);