From: H.G. Muller Date: Wed, 4 Dec 2013 19:26:59 +0000 (+0100) Subject: Only save clock settings in PGN when an engine plays X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=64a3d6f1b363df4b2b11d8cb95a097f68612323d;p=xboard.git Only save clock settings in PGN when an engine plays --- diff --git a/backend.c b/backend.c index e745037..5ad2562 100644 --- a/backend.c +++ b/backend.c @@ -13120,7 +13120,8 @@ SaveGamePGN (FILE *f) if (gameInfo.resultDetails != NULL && gameInfo.resultDetails[0] != NULLCHAR) { char buf[MSG_SIZ], *p = gameInfo.resultDetails; - if(gameInfo.result == GameUnfinished && appData.clockMode && !appData.icsActive) // [HGM] adjourn: save clock settings + if(gameInfo.result == GameUnfinished && appData.clockMode && + (gameMode == MachinePlaysWhite || gameMode == MachinePlaysBlack || gameMode == TwoMachinesPlay)) // [HGM] adjourn: save clock settings snprintf(buf, MSG_SIZ, "%s (Clocks: %ld, %ld)", p, whiteTimeRemaining/1000, blackTimeRemaining/1000), p = buf; fprintf(f, "{%s} %s\n\n", p, PGNResult(gameInfo.result)); } else {