From 1eb23e354e12b8bb51755ea1255a90a7802c9b13 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 13 Jan 2010 11:35:34 +0100 Subject: [PATCH] Fix TwoKings ICS castling-rights bug Scanning the rank (as is done because of FRC) assigned castling rights to the rightmost King. Even scanning the opposite direction would not work, as it is not always the leftmost King that can castle. So we now explicitly test for a King on e1/e8 in TwoKings and assign it rights, relying on the Rook rights received from the ICS to control castling. --- backend.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index 31427c3..571ff13 100644 --- a/backend.c +++ b/backend.c @@ -3700,6 +3700,11 @@ ParseBoard12(string) for(k=BOARD_LEFT; k