From 8f28573d2b5b136a4997bc720a3037f9ba086532 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sat, 4 Oct 2014 19:39:06 +0200 Subject: [PATCH] Reset move entry on stepping through game A forward or backward step through the game after selecting a from-square did not erase the latter, so that it became impossible to select a from-square for an opponent move, as it would be interpreted as the to-square for the patially entered move. This was especially annoying with legality testing off, as the legality test there, based on the square markings, does not reset the entry state either, but waits until you do click a legal to-square, so that you had to attempt moving with pieces of the side not to move to get out of this state. Now stepping through another position will reset the move-entry state completely, always considering the first click a from-square selection. --- backend.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index faf0b54..bedeead 100644 --- a/backend.c +++ b/backend.c @@ -15524,6 +15524,7 @@ ForwardInner (int target) seekGraphUp = FALSE; MarkTargetSquares(1); + fromX = fromY = killX = killY = -1; // [HGM] abort any move entry in progress if (gameMode == PlayFromGameFile && !pausing) PauseEvent(); @@ -15642,6 +15643,7 @@ BackwardInner (int target) if (gameMode == EditPosition) return; seekGraphUp = FALSE; MarkTargetSquares(1); + fromX = fromY = killX = killY = -1; // [HGM] abort any move entry in progress if (currentMove <= backwardMostMove) { ClearHighlights(); DrawPosition(full_redraw, boards[currentMove]); -- 1.7.0.4