From: H.G. Muller Date: Sun, 7 Feb 2010 10:18:56 +0000 (+0100) Subject: Bugfix stale first-click X-Git-Tag: v4.4.3.20100220~8 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=4a4729c5ea23514cc58063054da416c81c3fae34;hp=54daab2e97fcd9d3f9dc26320000b288a0e5ecc6;p=xboard.git 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? --- diff --git a/backend.c b/backend.c index 7b7df9c..bbc39be 100644 --- a/backend.c +++ b/backend.c @@ -8119,6 +8119,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