From c4e2d19fab41744168e92d4f9e23176689f4bc20 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 8 Jun 2011 17:20:01 +0200 Subject: [PATCH] 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...) --- backend.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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); -- 1.7.0.4