From: H.G. Muller Date: Wed, 13 Jan 2010 10:35:34 +0000 (+0100) Subject: Fix TwoKings ICS castling-rights bug X-Git-Tag: master-20100118~7 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0d659b62c95d75690aa41e7acb0753c2b51317cc;p=xboard.git 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. --- 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