From: H.G. Muller Date: Sun, 13 Feb 2011 21:30:59 +0000 (+0100) Subject: Fix variant janus size prefix X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=00db7129eba48aa798b9da74391d3e9d367088f6;p=xboard.git Fix variant janus size prefix The default board size of Janus Chess was not consistently taken to be 10x8, which resulted the name to be sent as 10x8+0_janus to the engine. --- diff --git a/backend.c b/backend.c index 17e77ae..ae15f1a 100644 --- 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;