Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] statue of libery (PR#4327)
Home

[Freeciv-Dev] statue of libery (PR#4327)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rt-guest@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] statue of libery (PR#4327)
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 8 Sep 2003 11:54:30 -0700
Reply-to: rt@xxxxxxxxxxxxxx

> Docs say that Statue of Liberty allows switching governments
> "without the transition period of anarchy".  This is not what
> in fact happens, as of 1.14.0.

The attached patch fixes this. Savegame to test patch is also included.

  - Per

Index: server/plrhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/plrhand.c,v
retrieving revision 1.290
diff -u -r1.290 plrhand.c
--- server/plrhand.c    3 Sep 2003 21:33:58 -0000       1.290
+++ server/plrhand.c    8 Sep 2003 18:29:13 -0000
@@ -817,9 +817,10 @@
 
   check_player_government_rates(pplayer);
   global_city_refresh(pplayer);
+  if (player_owns_active_govchange_wonder(pplayer)) {
+    pplayer->revolution = 0;
+  }
   send_player_info(pplayer, pplayer);
-  if (player_owns_active_govchange_wonder(pplayer))
-    pplayer->revolution=1;
 }
 
 /**************************************************************************

Attachment: statue-of-liberty.sav.gz
Description: statue-of-liberty.sav.gz


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] statue of libery (PR#4327), Per I. Mathisen <=