From 4a538e46ba98f9cca1d9c156347e5bfc3952b160 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 13 Nov 2010 22:52:09 +0100 Subject: [PATCH] Fix acceptance of null-move with legality testing off A second click on the same piece was interpreted as a to-square rather than deselection of the piece. --- backend.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index caaeabd..0026207 100644 --- a/backend.c +++ b/backend.c @@ -6439,8 +6439,9 @@ void LeftClick(ClickType clickType, int xPix, int yPix) MarkTargetSquares(0); DragPieceBegin(xPix, yPix); } - return; } + if(x == fromX && y == fromY) return; // if OnlyMove altered (x,y) we go on + second = FALSE; } // ignore clicks on holdings if(x < BOARD_LEFT || x >= BOARD_RGHT) return; -- 1.7.0.4