Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2005:
[Freeciv-Dev] (PR#13756) Team information not properly cleared when a pl
Home

[Freeciv-Dev] (PR#13756) Team information not properly cleared when a pl

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13756) Team information not properly cleared when a player is removed
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Wed, 24 Aug 2005 00:50:32 -0700
Reply-to: bugs@xxxxxxxxxxx

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

In 2.0 when a player is removed, the team information garbage goes to
any new player who takes the slot.
The attached patch should fix it for 2.0. Cvs head doesn't need the fix.
The bug was reported by pubserver at
http://pubserver.freeciv.org/games/471149.
--
mateusz
Index: server/plrhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/plrhand.c,v
retrieving revision 1.330.2.33
diff -u -r1.330.2.33 plrhand.c
--- server/plrhand.c    22 Aug 2005 20:58:52 -0000      1.330.2.33
+++ server/plrhand.c    24 Aug 2005 07:46:04 -0000
@@ -1705,6 +1705,7 @@
     player_map_allocate(pplayer);
   }
   pplayer->player_no = pplayer-game.players;
+  pplayer->team = TEAM_NONE;
   ai_data_init(pplayer);
 }
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#13756) Team information not properly cleared when a player is removed, Mateusz Stefek <=