From 29f081ac9fd42a645b3a195341103c96a3a330d9 Mon Sep 17 00:00:00 2001 From: Alain BKR Date: Thu, 30 Mar 2023 14:10:59 +0200 Subject: [PATCH] add log_normal for all victories --- server/srv_main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/srv_main.c b/server/srv_main.c index 2272a91ecf..f900495f0d 100644 --- a/server/srv_main.c +++ b/server/srv_main.c @@ -588,6 +588,8 @@ bool check_for_game_over(void) notify_conn(game.est_connections, NULL, E_GAME_END, ftc_server, _("Notice: game will end at the end of this turn due " "to 'endturn' server setting.")); + log_normal(_("Notice: game will end at the end of this turn due " + "to 'endturn' server setting.")); } /* Check for a spacerace win (and notify of imminent arrivals). @@ -641,13 +643,15 @@ bool check_for_game_over(void) notify_conn(NULL, NULL, E_GAME_END, ftc_server, _("Team victory to %s."), team_name_translation(pplayer->team)); + log_normal(_("Team victory to %s."), team_name_translation(pplayer->team)); /* All players of the team win, even dead and surrendered ones. */ player_list_iterate(members, pteammate) { pteammate->is_winner = TRUE; } player_list_iterate_end; } else { notify_conn(NULL, NULL, E_GAME_END, ftc_server, - _("Game ended in victory for %s."), player_name(pplayer)); + _("Game ended in spacerace victory for %s."), player_name(pplayer)); + log_normal(_("Game ended in spacerace victory for %s."), player_name(pplayer)); pplayer->is_winner = TRUE; } return TRUE; @@ -676,6 +680,9 @@ bool check_for_game_over(void) _("Notice: the %s spaceship will likely arrive at " "Alpha Centauri next turn."), nation_adjective_for_player(pplayer)); + log_normal(_("Notice: the %s spaceship will likely arrive at " + "Alpha Centauri next turn."), + nation_adjective_for_player(pplayer)); } } -- 2.34.1