Fix default holdings size for variant seirawan
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 16 Nov 2010 11:40:31 +0000 (12:40 +0100)
committerArun Persaud <arun@nubati.net>
Thu, 18 Nov 2010 07:06:46 +0000 (23:06 -0800)
The holdings for 7 pieces werealways considered an overrule, so that the
variant name was prefixed with "8x8+7_".

backend.c

index bd641fe..0af00ea 100644 (file)
--- 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,