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

URL: http://svn.gna.org/viewcvs/freeciv?rev=28616&view=rev
Log:
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

Modified: branches/S2_6/server/srv_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/srv_main.c?rev=28616&r1=28615&r2=28616&view=diff
==============================================================================
--- 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
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to