Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2005:
[Freeciv-Dev] (PR#14336) nations bug in civil war
Home

[Freeciv-Dev] (PR#14336) nations bug in civil war

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#14336) nations bug in civil war
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 14 Oct 2005 21:28:59 -0700
Reply-to: bugs@xxxxxxxxxxx

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

Civil war doesn't use player_set_nation.  This leaves the nations in a 
desynchronized state.

-jason

Index: server/plrhand.c
===================================================================
--- server/plrhand.c    (revision 11131)
+++ server/plrhand.c    (working copy)
@@ -1461,7 +1461,7 @@
 
   /* select a new name and nation for the copied player. */
   /* Rebel will always be an AI player */
-  cplayer->nation = pick_a_nation(civilwar_nations, TRUE, FALSE);
+  player_set_nation(cplayer, pick_a_nation(civilwar_nations, TRUE, FALSE));
   pick_random_player_name(cplayer->nation, cplayer->name);
 
   sz_strlcpy(cplayer->username, ANON_USER_NAME);

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#14336) nations bug in civil war, Jason Short <=