From 9aa0bf8d13b7ad2c7763fe2807e443e730a62dcb Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 9 Jan 2011 00:21:41 +0100 Subject: [PATCH] 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. --- backend.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) 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) && -- 1.7.0.4