From 80e6f9d953e34c2f2ebf745a2e23e0eb6acf882b Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 8 Mar 2012 10:02:00 +0100 Subject: [PATCH] Fix clearing of premove Any left-clicking on the board now clears an existing premove, in addition to what it normally does. --- backend.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index 803bb71..d1f3b04 100644 --- a/backend.c +++ b/backend.c @@ -6886,6 +6886,11 @@ LeftClick (ClickType clickType, int xPix, int yPix) || x == BOARD_RGHT+1 && y >= gameInfo.holdingsSize) ) return; + if(gotPremove && clickType == Press) { // user starts something after premove has been entered: abort premove as side effect + gotPremove = 0; + ClearPremoveHighlights(); + } + if(clickType == Press && fromX == x && fromY == y && promoDefaultAltered) fromX = fromY = -1; // second click on piece after altering default promo piece treated as first click -- 1.7.0.4