Author: sveinung
Date: Wed Mar 25 00:00:15 2015
New Revision: 28616

Make the client aware of its nationality as soon as nationality is assigned.

Send player info when announcing player in the chat. This makes the client
set its player's nationality to the correct as soon as possible. The old and
incorrect value may have been NULL.

See patch #5943


Modified: branches/S2_6/server/srv_main.c
--- branches/S2_6/server/srv_main.c     (original)
+++ branches/S2_6/server/srv_main.c     Wed Mar 25 00:00:15 2015
@@ -2378,6 +2378,11 @@
   notify_conn(game.est_connections, NULL, E_GAME_START,
               ftc_server, _("%s rules the %s."),
               player_name(pplayer), nation_plural_for_player(pplayer));
+  /* Let the clients knows the nation of the players as soon as possible.
+   * When a player's nation is server assigned its client will think of it
+   * as NULL until informed about the assigned nation. */
+  send_player_info_c(pplayer, NULL);

Freeciv-commits mailing list

Reply via email to