From 4c2a4a8be3521597c9b19749cfdc998108824f9e Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 18 Nov 2009 19:12:25 -0800 Subject: [PATCH] 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). --- backend.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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); -- 1.7.0.4