From: H.G. Muller Date: Wed, 8 Jun 2011 15:20:01 +0000 (+0200) Subject: Fix display of last move of last match game X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c4e2d19fab41744168e92d4f9e23176689f4bc20;p=xboard.git Fix display of last move of last match game When a game was adjudicated (e.g. because XBoard detected mate) GameEnds would trigger an exit if it was the last game of the match, and thus never returned, while the ShowMove was called only after return from Adjudicate. An extra ToNrEvent is now used in GameEnd in this case to cause ShowMove to be called before exiting. (Ugly kludge...) --- diff --git a/backend.c b/backend.c index 6243fa3..05e60b5 100644 --- a/backend.c +++ b/backend.c @@ -10260,6 +10260,7 @@ GameEnds(result, resultDetails, whosays) if(popupRequested) { // [HGM] crash: this calls GameEnds recursively through ExitEvent! Make it a harmless tail recursion. if(matchMode == TRUE) { // match through command line: exit with or without popup if(ranking) { + ToNrEvent(forwardMostMove); if(strcmp(ranking, "busy")) DisplayFatalError(ranking, 0, 0); else ExitEvent(0); } else DisplayFatalError(buf, 0, 0);