From: H.G. Muller Date: Sat, 8 Jan 2011 23:21:41 +0000 (+0100) Subject: Reset machine colors after match X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9aa0bf8d13b7ad2c7763fe2807e443e730a62dcb;p=xboard.git Reset machine colors after match The colors each engine playse are set to the originals after the last match game, so that a new match or two-machines game will not have swapped colors. --- diff --git a/backend.c b/backend.c index 8169707..df586fd 100644 --- a/backend.c +++ b/backend.c @@ -9453,6 +9453,13 @@ GameEnds(result, resultDetails, whosays) first.matchWins, second.matchWins, appData.matchGames - (first.matchWins + second.matchWins)); popupRequested++; // [HGM] crash: postpone to after resetting endingGame + if (appData.firstPlaysBlack) { // [HGM] match: back to original for next match + first.twoMachinesColor = "black\n"; + second.twoMachinesColor = "white\n"; + } else { + first.twoMachinesColor = "white\n"; + second.twoMachinesColor = "black\n"; + } } } if ((gameMode == AnalyzeMode || gameMode == AnalyzeFile) &&