From 240d6d730bdd00e94d70a589e352e8eb4eb9a174 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 23 Aug 2010 12:43:27 +0200 Subject: [PATCH] Do not exit after match when match started from menu The codelooks weird, but matchMode == 2 in this case. We then use DisplayNote() to report the match result. --- backend.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 3c21f9d..92df2bb 100644 --- a/backend.c +++ b/backend.c @@ -9366,7 +9366,12 @@ GameEnds(result, resultDetails, whosays) gameMode = nextGameMode; ModeHighlight(); endingGame = 0; /* [HGM] crash */ - if(popupRequested) DisplayFatalError(buf, 0, 0); // [HGM] crash: this call GameEnds recursively through ExitEvent! Make it a harmless tail recursion. + if(popupRequested) { // [HGM] crash: this calls GameEnds recursively through ExitEvent! Make it a harmless tail recursion. + if(matchMode == TRUE) DisplayFatalError(buf, 0, 0); else { + matchMode = FALSE; appData.matchGames = matchGame = 0; + DisplayNote(buf); + } + } } /* Assumes program was just initialized (initString sent). -- 1.7.0.4