X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=29638b801c454b50fd597d6eaed12c074740d95a;hb=d30d12e2d31771571fec432198b17a485a8881c7;hp=a3eebccac4a82cefebe47fb9b609bfd31d7a100e;hpb=89f4b438a9bc3ed2b2b2bd79f22a1a6af06e9bcb;p=xboard.git diff --git a/moves.c b/moves.c index a3eebcc..29638b8 100644 --- a/moves.c +++ b/moves.c @@ -1815,6 +1815,8 @@ DisambiguateCallback (Board board, int flags, ChessMove kind, int rf, int ff, in (cl->rtIn == -1 || cl->rtIn == rt || wildCard) && (cl->ftIn == -1 || cl->ftIn == ft || wildCard)) { + if(cl->count && rf == cl->rf && ff == cl->ff) return; // duplicate move + cl->count++; if(cl->count == 1 || board[rt][ft] != EmptySquare) { // [HGM] oneclick: if multiple moves, be sure we remember capture