X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=2f6a706566c45fb6833ed09786e204e9548c273d;hb=674a21be8b9a930d910d4345db5b999e76c58b70;hp=25263c8a75016c92804425954ec4f9c168729067;hpb=2f104b7904a48f7f686d3b41d5061e8ef549c5b0;p=xboard.git diff --git a/moves.c b/moves.c index 25263c8..2f6a706 100644 --- a/moves.c +++ b/moves.c @@ -1735,6 +1735,8 @@ CheckTest (Board board, int flags, int rf, int ff, int rt, int ft, int enPassant } } + if(PieceToChar(king) == '.') return 0; // never in check if the royal piece does not participate + if (rt >= 0) { if (enPassant) { captured = board[rf][ft];