From 0d659b62c95d75690aa41e7acb0753c2b51317cc 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 eftmost 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 937ba59..204cd44 100644 --- a/backend.c +++ b/backend.c @@ -3724,6 +3724,11 @@ ParseBoard12(string) for(k=BOARD_LEFT; k