Fix one-click bug
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 13 Nov 2010 21:49:43 +0000 (22:49 +0100)
committerArun Persaud <arun@nubati.net>
Sun, 14 Nov 2010 05:08:53 +0000 (21:08 -0800)
Disambiguate was imagining captures, so an only capture by double
clicking your own piece did not always work.

moves.c

diff --git a/moves.c b/moves.c
index 50d7501..0b0bba5 100644 (file)
--- 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
     }
 }