From 5e71682fa80342befa3af0c70a98c665dc1f77c4 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 23 Dec 2012 11:26:31 +0100 Subject: [PATCH] Do not automatically save aborted games in tourney PGN When the game result is 'unfinished', we prompt for a filename rather then using the specified saveGameFile if a tourney is in progress. --- backend.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index 34ffd0a..52e8097 100644 --- a/backend.c +++ b/backend.c @@ -10668,6 +10668,9 @@ GameEnds (ChessMove result, char *resultDetails, int whosays) && lastSavedGame != GameCheckSum() // [HGM] save: suppress duplicates ) { if (*appData.saveGameFile != NULLCHAR) { + if(result == GameUnfinished && matchMode && *appData.tourneyFile) + AutoSaveGame(); // [HGM] protect tourney PGN from aborted games, and prompt for name instead + else SaveGameToFile(appData.saveGameFile, TRUE); } else if (appData.autoSaveGames) { AutoSaveGame(); -- 1.7.0.4