From 009262edc7a1e84e093d26a478735c3f4073f9f3 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 24 Sep 2023 23:11:37 +0300 Subject: [PATCH 48/48] Improve fit_nationset_to_players() comments See osdn #48266 Signed-off-by: Marko Lindqvist --- server/plrhand.c | 4 +++- server/savegame/savegame3.c | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/plrhand.c b/server/plrhand.c index 7dea3d418a..4f9f803dd9 100644 --- a/server/plrhand.c +++ b/server/plrhand.c @@ -2640,7 +2640,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/savegame/savegame3.c b/server/savegame/savegame3.c index 114bd0d62d..78f217649e 100644 --- a/server/savegame/savegame3.c +++ b/server/savegame/savegame3.c @@ -3845,8 +3845,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