<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40238 >

 S2_1 only.

 To reproduce:
 1) Connect client to server
 2) server: set aifill 4 -> 4 players seen in client side
 3) server: create foobar -> 3 players seen in client side


 Fix attached.


 - ML

diff -Nurd -X.diff_ignore freeciv/server/stdinhand.c freeciv/server/stdinhand.c
--- freeciv/server/stdinhand.c  2008-05-08 00:24:57.000000000 +0300
+++ freeciv/server/stdinhand.c  2008-05-08 11:05:26.000000000 +0300
@@ -937,6 +937,7 @@
   set_ai_level_directer(pplayer, game.info.skill_level);
   aifill(game.info.aifill);
   send_game_info(NULL);
+  pplayer = find_player_by_name(arg); /* in case aifill rearranged players */
   send_player_info(pplayer, NULL);
   reset_all_start_commands();
   (void) send_server_info_to_metaserver(META_INFO);
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to