Clear board markers when moving to other position
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 3 Nov 2011 15:38:57 +0000 (16:38 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Thu, 3 Nov 2011 15:38:57 +0000 (16:38 +0100)
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

index f4499df..8d16cf5 100644 (file)
--- 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]);