Make variant-unsupported-by-second error non-fatal
authorH.G. Muller <h.g.muller@hccnet.nl>
Mon, 26 Mar 2012 15:12:33 +0000 (17:12 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Tue, 10 Apr 2012 09:39:39 +0000 (11:39 +0200)
backend.c

index 3f6229d..f733800 100644 (file)
--- 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;