From b595d12f49b98daeed0b9629ab759c16b897bc7a Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 3 Nov 2011 16:38:57 +0100 Subject: [PATCH] Clear board markers when moving to other position Now the markers from -showTargetSquares would stay on after a first click for the benefit of a click-click move, they would also stay on when not finishing the move, but operating the < > buttons in stead to call up other positions. ForwardInner and BackwardInner now clear the markers, like they also cleared highlights. --- backend.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index f4499df..8d16cf5 100644 --- a/backend.c +++ b/backend.c @@ -14225,6 +14225,8 @@ ForwardInner(target) if (gameMode == EditPosition) return; + MarkTargetSquares(1); + if (gameMode == PlayFromGameFile && !pausing) PauseEvent(); @@ -14330,6 +14332,7 @@ BackwardInner(target) target, currentMove, forwardMostMove); if (gameMode == EditPosition) return; + MarkTargetSquares(1); if (currentMove <= backwardMostMove) { ClearHighlights(); DrawPosition(full_redraw, boards[currentMove]); -- 1.7.0.4