From: H.G. Muller Date: Mon, 26 Mar 2012 15:12:33 +0000 (+0200) Subject: Make variant-unsupported-by-second error non-fatal X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=240221c6158003a163aecb1efbe207bae058683d;p=xboard.git Make variant-unsupported-by-second error non-fatal --- diff --git a/backend.c b/backend.c index 3f6229d..f733800 100644 --- a/backend.c +++ b/backend.c @@ -13553,6 +13553,11 @@ TwoMachinesEvent P((void)) if (appData.noChessProgram) return; + if(second.protocolVersion >= 2 && !strstr(second.variants, VariantName(gameInfo.variant))) { + DisplayError("second engine does not play this", 0); + return; + } + switch (gameMode) { case TwoMachinesPlay: return;