Don't test drops as mate evasions in variant seirawan
authorH.G. Muller <h.g.muller@hccnet.nl>
Wed, 28 Dec 2011 12:38:59 +0000 (13:38 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Wed, 28 Dec 2011 12:56:20 +0000 (13:56 +0100)
moves.c

diff --git a/moves.c b/moves.c
index 3ea2ab0..354c70d 100644 (file)
--- a/moves.c
+++ b/moves.c
@@ -1284,7 +1284,7 @@ int MateTest(board, flags)
        return inCheck ? MT_CHECK : MT_NONE;
     } else {
         if(gameInfo.holdingsWidth && gameInfo.variant != VariantSuper && gameInfo.variant != VariantGreat
-                                                                      && gameInfo.variant != VariantGrand) { // drop game
+                                 && gameInfo.variant != VariantSChess && gameInfo.variant != VariantGrand) { // drop game
             int r, f, n, holdings = flags & F_WHITE_ON_MOVE ? BOARD_WIDTH-1 : 0;
             for(r=0; r<BOARD_HEIGHT; r++) for(f=BOARD_LEFT; f<BOARD_RGHT; f++) if(board[r][f] == EmptySquare) // all empty squares
                 for(n=0; n<BOARD_HEIGHT; n++) // all pieces in hand