Fix variant janus size prefix
[xboard.git] / backend.c
index e0f6ec9..ae15f1a 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -8892,7 +8892,7 @@ InitChessProgram(cps, setup)
       if( gameInfo.variant == VariantBughouse || gameInfo.variant == VariantCrazyhouse )
            overruled = gameInfo.boardWidth != 8 || gameInfo.boardHeight != 8 || gameInfo.holdingsSize != 5;
       if( gameInfo.variant == VariantCapablanca || gameInfo.variant == VariantCapaRandom ||
-                               gameInfo.variant == VariantGothic  || gameInfo.variant == VariantFalcon )
+          gameInfo.variant == VariantGothic || gameInfo.variant == VariantFalcon || gameInfo.variant == VariantJanus )
            overruled = gameInfo.boardWidth != 10 || gameInfo.boardHeight != 8 || gameInfo.holdingsSize != 0;
       if( gameInfo.variant == VariantCourier )
            overruled = gameInfo.boardWidth != 12 || gameInfo.boardHeight != 8 || gameInfo.holdingsSize != 0;
@@ -13908,8 +13908,6 @@ ParseOption(Option *opt, ChessProgramState *cps)
            opt->type = Button;
        } else if(p = strstr(opt->name, " -save")) {
            opt->type = SaveButton;
-       } else if(p = strstr(opt->name, " -reset")) {
-           opt->type = ResetButton;
        } else return FALSE;
        *p = 0; // terminate option name
        // now look if the command-line options define a setting for this engine option.