From: H.G. Muller Date: Sun, 11 Jul 2010 08:42:00 +0000 (+0200) Subject: Fix oneClickMove bug X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=91477ff29379bf3b98aab23510cf6cb3830e686c;p=xboard.git Fix oneClickMove bug When checking for unique captures, no attention was payed to the option setting, so the capture was also made when the option was off. --- diff --git a/backend.c b/backend.c index 358e040..5d0c420 100644 --- a/backend.c +++ b/backend.c @@ -6362,7 +6362,7 @@ void LeftClick(ClickType clickType, int xPix, int yPix) !(fromP == BlackKing && toP == BlackRook && frc))) { /* Clicked again on same color piece -- changed his mind */ second = (x == fromX && y == fromY); - if(!second || !OnlyMove(&x, &y, TRUE)) { + if(!second || appData.oneClick && !OnlyMove(&x, &y, TRUE)) { if (appData.highlightDragging) { SetHighlights(x, y, -1, -1); } else {