X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=6ccbb1c082d295a68447ada3bb6a942d8ee051ca;hb=4792abc3494f983650870624197e9af53e682bb2;hp=6fa6693611b000bec7ea909949517235b0124582;hpb=020fc338d749be0f8f49d133911a6c33d2eb56a1;p=xboard.git diff --git a/moves.c b/moves.c index 6fa6693..6ccbb1c 100644 --- a/moves.c +++ b/moves.c @@ -1043,6 +1043,8 @@ if(appData.debugMode) fprintf(debugFP, "LegalDrop: %d @ %d,%d)\n", piece, ft, rt if(board[r][ft] == piece) return IllegalMove; // or there already is a Pawn in file // should still test if we mate with this Pawn } + } else if(gameInfo.variant == VariantSChess) { // only back-rank drops + if (rt != (piece < BlackPawn ? 0 : BOARD_HEIGHT-1)) return IllegalMove; } else { if( (piece == WhitePawn || piece == BlackPawn) && (rt == 0 || rt == BOARD_HEIGHT -1 ) )