Add -onlyOwnGames option
[xboard.git] / backend.c
index 61a9f1e..42d9d19 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -10749,7 +10749,7 @@ GameEnds (ChessMove result, char *resultDetails, int whosays)
                        else
                        SaveGameToFile(appData.saveGameFile, TRUE);
                    } else if (appData.autoSaveGames) {
-                       AutoSaveGame();
+                       if(gameMode != IcsObserving || !appData.onlyOwn) AutoSaveGame();
                    }
                    if (*appData.savePositionFile != NULLCHAR) {
                        SavePositionToFile(appData.savePositionFile);