From 91477ff29379bf3b98aab23510cf6cb3830e686c Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 11 Jul 2010 10:42:00 +0200 Subject: [PATCH] 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. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 { -- 1.7.0.4