From d6057471a41b3172345338597aae7dbc33a33cf4 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 11 Nov 2021 04:15:35 +0200 Subject: [PATCH 27/27] Make GAMEOVER autosave int the end of all-AI autogame Reported by alain_bkr See osdn #42172 Signed-off-by: Marko Lindqvist --- server/srv_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/srv_main.c b/server/srv_main.c index ac301c22f3..581a7da38c 100644 --- a/server/srv_main.c +++ b/server/srv_main.c @@ -3025,9 +3025,11 @@ static void srv_scores(void) send_server_info_to_metaserver(META_INFO); if (game.server.save_nturns > 0 - && conn_list_size(game.est_connections) > 0) { + && (conn_list_size(game.est_connections) > 0 + || !srvarg.quitidle)) { /* Save game on game_over, but not when the gameover was caused by - * the -q parameter. */ + * the -q parameter. Be sure that it's the -q, and not an autogame + * with no human players. */ save_game_auto("Game over", AS_GAME_OVER); } } -- 2.33.0