From d78e0b2bc1c4390b7afe294d94146cb682e29fb2 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 7 Feb 2010 11:18:56 +0100 Subject: [PATCH] Bugfix stale first-click When the opponent resigned after the user had cicked a from-square, clicking the from-square for the first move in the next game would produce an "illegal move" message, because it was considered a to-click! We now set fromX and fromY to invalid in GameEnds(). Should we also reset them on mode changes? --- backend.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index 2438d49..387f87c 100644 --- a/backend.c +++ b/backend.c @@ -8717,6 +8717,8 @@ GameEnds(result, resultDetails, whosays) result, resultDetails ? resultDetails : "(null)", whosays); } + fromX = fromY = -1; // [HGM] abort any move the user is entering. + if (appData.icsActive && (whosays == GE_ENGINE || whosays >= GE_ENGINE1)) { /* If we are playing on ICS, the server decides when the game is over, but the engine can offer to draw, claim -- 1.7.0.4