From 92ffb8a47c481d828798f702f1a5e37e6ed28107 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 24 Sep 2023 23:14:29 +0300 Subject: [PATCH 16/16] Improve fit_nationset_to_players() comments See osdn #48266 Signed-off-by: Marko Lindqvist --- server/plrhand.c | 4 +++- server/savegame3.c | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/plrhand.c b/server/plrhand.c index a90cba6d43..4f3386bb33 100644 --- a/server/plrhand.c +++ b/server/plrhand.c @@ -2399,7 +2399,9 @@ void send_nation_availability(struct conn_list *dest, /**************************************************************************** Try to select a nation set that fits the current players' nations, or failing that, unset the nations of some of the players. - To be called when loading an old savegame that predates nationsets. + + Does not update clients, as is assumed to be called during game setup, + and to be followed by sending full game info to clients. ****************************************************************************/ void fit_nationset_to_players(void) { diff --git a/server/savegame3.c b/server/savegame3.c index 153a9c302f..0dec35d568 100644 --- a/server/savegame3.c +++ b/server/savegame3.c @@ -3570,8 +3570,7 @@ static void sg_load_players(struct loaddata *loading) } players_iterate_end; /* Savegame may contain nation assignments that are incompatible with the - * current nationset -- for instance, if it predates the introduction of - * nationsets. Ensure they are compatible, one way or another. */ + * current nationset. Ensure they are compatible, one way or another. */ fit_nationset_to_players(); /* Some players may have invalid nations in the ruleset. Once all players -- 2.40.1