Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2005:
[Freeciv-Dev] (PR#13813) better player removal in /detach
Home

[Freeciv-Dev] (PR#13813) better player removal in /detach

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13813) better player removal in /detach
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 29 Aug 2005 09:07:11 -0700
Reply-to: bugs@xxxxxxxxxxx

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

If you do /detach in pregame, your player is removed automatically.

1.  The new info isn't sent to the client.
2.  There is no aifill update.
3.  Team data isn't updated.

This patch fixes it.

-jason

Index: server/stdinhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/stdinhand.c,v
retrieving revision 1.432
diff -p -u -r1.432 stdinhand.c
--- server/stdinhand.c  26 Aug 2005 19:40:26 -0000      1.432
+++ server/stdinhand.c  29 Aug 2005 16:05:56 -0000
@@ -3023,8 +3023,8 @@ static bool detach_command(struct connec
     } conn_list_iterate_end;
 
     /* actually do the removal */
-    game_remove_player(pplayer);
-    game_renumber_players(pplayer->player_no);
+    server_remove_player(pplayer);
+    aifill(game.aifill);
     reset_all_start_commands();
   }
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#13813) better player removal in /detach, Jason Short <=