Update window itle after last game of match
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 18 Jun 2011 10:51:10 +0000 (12:51 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sat, 18 Jun 2011 10:51:10 +0000 (12:51 +0200)
The result printed behind player names during a match would still be the one
without the game, differing from what the popup would show, which looked
sloppy enough for people to complain about it.
.

backend.c

index 6764bea..7308920 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -234,6 +234,7 @@ void NextMatchGame P((void));
 int NextTourneyGame P((int nr, int *swap));
 int Pairing P((int nr, int nPlayers, int *w, int *b, int *sync));
 FILE *WriteTourneyFile P((char *results));
+void DisplayTwoMachinesTitle P(());
 
 #ifdef WIN32
        extern void ConsoleCreate();
@@ -10255,6 +10256,7 @@ GameEnds(result, resultDetails, whosays)
                     first.tidy, second.tidy,
                     first.matchWins, second.matchWins,
                     appData.matchGames - (first.matchWins + second.matchWins));
+           if(!appData.tourneyFile[0]) matchGame++, DisplayTwoMachinesTitle(); // [HGM] update result in window title
            popupRequested++; // [HGM] crash: postpone to after resetting endingGame
            if (appData.firstPlaysBlack) { // [HGM] match: back to original for next match
                first.twoMachinesColor = "black\n";