From d41436d65b74f8bf75e7de167eb1f3ea701c893c Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 16 Nov 2010 12:40:31 +0100 Subject: [PATCH] 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_". --- backend.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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, -- 1.7.0.4