From 02b85711ba28b66862dff72c6fddc121e7f1b57f Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 17 Jan 2010 14:24:12 +0100 Subject: [PATCH] Fix OO-castling in FRC after pasting FEN Because the FEN parser did not set initialRights, the rights from the previous game kept hanging there, and prevented recognition of OO-castling (although KxR castling was still understood). --- backend.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index a220324..28c5546 100644 --- a/backend.c +++ b/backend.c @@ -13981,6 +13981,8 @@ ParseFEN(board, blackPlaysFirst, fen) } } } + for(i=0; i= 0) initialRights[i] = FENcastlingRights[i]; if (appData.debugMode) { fprintf(debugFP, "FEN castling rights:"); for(i=0; i