From: H.G. Muller Date: Sat, 26 Nov 2011 21:22:07 +0000 (+0100) Subject: Ignore ICS game starts when already in game X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=3fb931964b7214f293750b842495eff5774cfa8b;p=xboard.git Ignore ICS game starts when already in game The advance switching of the variant on game-start messages was disruptive for users with gin=1, which also sends such messages for other games than your own. For now fixed by only reacting on them when idle (detected by invalid game number). --- diff --git a/backend.c b/backend.c index ca3e342..4d4b6fa 100644 --- a/backend.c +++ b/backend.c @@ -3863,6 +3863,7 @@ read_from_ics(isr, closure, data, count, error) strncmp(why, "Continuing ", 11) == 0) { gs_gamenum = gamenum; safeStrCpy(gs_kind, strchr(why, ' ') + 1,sizeof(gs_kind)/sizeof(gs_kind[0])); + if(ics_gamenum == -1) // [HGM] only if we are not already involved in a game (because gin=1 sends us such messages) VariantSwitch(boards[currentMove], StringToVariant(gs_kind)); // [HGM] variantswitch: even before we get first board #if ZIPPY if (appData.zippyPlay) {