From: H.G.Muller Date: Mon, 15 May 2017 12:16:56 +0000 (+0200) Subject: Prevent spoiling of castling rights on setup X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=3b581e66a7e1ad5279983ae3a06ae8d1eb65c788;p=crazywa.git Prevent spoiling of castling rights on setup The undo info is now initialized to a dummy move on a3 rather than a1, so that the white Q-side castling rules are not immediately spoiled through suspecting a Rook move. --- diff --git a/dropper.c b/dropper.c index f3f4ee1..aa314a3 100644 --- a/dropper.c +++ b/dropper.c @@ -1528,7 +1528,7 @@ Setup (char *fen) fen++; } - undoInfo.rights = rights; + undoInfo.rights = rights; undoInfo.fromSqr = undoInfo.toSqr = undoInfo.captSqr = 44; undoInfo.toPiece = board[44]; // kludge to prevent spoiling of rights undoInfo.newEval = (stm == WHITE ? pstEval : -pstEval); undoInfo.newKey = hashKey;