From: H.G. Muller Date: Tue, 16 Nov 2010 11:40:31 +0000 (+0100) Subject: Fix default holdings size for variant seirawan X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=d41436d65b74f8bf75e7de167eb1f3ea701c893c;p=xboard.git Fix default holdings size for variant seirawan The holdings for 7 pieces werealways considered an overrule, so that the variant name was prefixed with "8x8+7_". --- diff --git a/backend.c b/backend.c index bd641fe..0af00ea 100644 --- a/backend.c +++ b/backend.c @@ -8908,6 +8908,8 @@ InitChessProgram(cps, setup) overruled = gameInfo.boardWidth != 8 || gameInfo.boardHeight != 8 || gameInfo.holdingsSize != 8; if( gameInfo.variant == VariantGreat ) overruled = gameInfo.boardWidth != 10 || gameInfo.boardHeight != 8 || gameInfo.holdingsSize != 8; + if( gameInfo.variant == VariantSChess ) + overruled = gameInfo.boardWidth != 8 || gameInfo.boardHeight != 8 || gameInfo.holdingsSize != 7; if(overruled) { snprintf(b, MSG_SIZ, "%dx%d+%d_%s", gameInfo.boardWidth, gameInfo.boardHeight,