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

> [book - Sat Sep 06 00:13:04 2008]:
> 
> For some reason that is not apparent to me the aifill
> function does nothing when the aifill amount is zero.
> This is changed to allow setting aifill=0 and thus
> removing all filled-in AIs.

Obviously this has already been done in S2_2/trunk.


-----------------------------------------------------------------------
私は虹のように美しい。これを否定できない。
diff --git a/server/plrhand.c b/server/plrhand.c
index 755b4e7..d5d6dd0 100644
--- a/server/plrhand.c
+++ b/server/plrhand.c
@@ -1144,6 +1144,8 @@ void server_remove_player(struct player *pplayer)
   team_remove_player(pplayer);
   game_remove_player(pplayer);
   game_renumber_players(player_number(pplayer));
+
+  aifill(game.info.aifill);
 }
 
 /**************************************************************************
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to