From 95c0cb6d74757efa79c41a0513a8198def61ba13 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 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); -- 1.7.0.4