From: H.G.Muller Date: Mon, 5 Dec 2016 08:54:30 +0000 (+0100) Subject: Fix legality testing with mandatory capture X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=1c5fc3438224a019380db2fcdc6d6c25693717a6 Fix legality testing with mandatory capture When a capture was possible in suicide/giveaway/losers, only the board markers of all non-captures were cleared, but not the legality of the corresponding destination squares in the array legal[][]. The patch that forced destinations to be legal when the engine had highlighted them had therefore broken rejection of illegal non-captures in this case. --- diff --git a/backend.c b/backend.c index 3792971..890461a 100644 --- a/backend.c +++ b/backend.c @@ -7462,7 +7462,7 @@ MarkTargetSquares (int clear) if(PosFlags(0) & F_MANDATORY_CAPTURE) { for(x=0; x1) capt++; if(capt) - for(x=0; x