From f2962b5c287ed93205c4f42b4bc46cb0dc2abf86 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 13 Nov 2010 22:49:43 +0100 Subject: [PATCH] Fix one-click bug Disambiguate was imagining captures, so an only capture by double clicking your own piece did not always work. --- moves.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 } } -- 1.7.0.4