From 64a3d6f1b363df4b2b11d8cb95a097f68612323d Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 4 Dec 2013 20:26:59 +0100 Subject: [PATCH] Only save clock settings in PGN when an engine plays --- backend.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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 { -- 1.7.0.4