From: H.G. Muller Date: Sun, 23 Dec 2012 10:26:31 +0000 (+0100) Subject: Do not automatically save aborted games in tourney PGN X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=5e71682fa80342befa3af0c70a98c665dc1f77c4;p=xboard.git 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. --- 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();