From: H.G. Muller Date: Sat, 13 Nov 2010 21:49:43 +0000 (+0100) Subject: Fix one-click bug X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=f2962b5c287ed93205c4f42b4bc46cb0dc2abf86;p=xboard.git Fix one-click bug Disambiguate was imagining captures, so an only capture by double clicking your own piece did not always work. --- diff --git a/moves.c b/moves.c index 50d7501..0b0bba5 100644 --- a/moves.c +++ b/moves.c @@ -1239,7 +1239,7 @@ void DisambiguateCallback(board, flags, kind, rf, ff, rt, ft, closure) cl->ft = wildCard ? cl->ftIn : ft; cl->kind = kind; } - cl->captures += (board[cl->rt][cl->ft] != EmptySquare); // [HGM] oneclick: count captures + cl->captures += (board[rt][ft] != EmptySquare); // [HGM] oneclick: count captures } }