Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2005:
[Freeciv-Dev] (PR#13750) reset target_government in finish_revolution
Home

[Freeciv-Dev] (PR#13750) reset target_government in finish_revolution

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13750) reset target_government in finish_revolution
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 23 Aug 2005 10:31:42 -0700
Reply-to: bugs@xxxxxxxxxxx

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

This patch resets target_government to NULL in finish_revolution.  Now 
that the target_government is initialized to NULL we should reset it 
when the revolution's over.

-jason

Index: server/plrhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/plrhand.c,v
retrieving revision 1.412
diff -p -u -r1.412 plrhand.c
--- server/plrhand.c    22 Aug 2005 21:15:49 -0000      1.412
+++ server/plrhand.c    23 Aug 2005 17:21:25 -0000
@@ -253,7 +253,7 @@ static void finish_revolution(struct pla
   }
 
   pplayer->government = government;
-  /* Leave the target government the same. */
+  pplayer->target_government = NULL;
 
   freelog(LOG_DEBUG,
          "Revolution finished for %s.  Government is %s.  Revofin %d (%d).",

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#13750) reset target_government in finish_revolution, Jason Short <=