Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2001:
[Freeciv-Dev] Re: BUG/PATCH: Overproduction problems (PR#670)
Home

[Freeciv-Dev] Re: BUG/PATCH: Overproduction problems (PR#670)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: BUG/PATCH: Overproduction problems (PR#670)
From: 蔡恆華 <iquin@xxxxxxxxxx>
Date: Tue, 30 Jan 2001 21:16:00 -0500 (EST)

Why not just:

--- -   Wed Jan 31 10:14:03 2001
+++ cityturn.c  Wed Jan 31 09:29:51 2001
@@ -1306,4 +1306,5 @@
       pcity->shield_stock-=improvement_value(pcity->currently_building);
+      if(pcity->shield_stock > pcity->shield_surplus)
+        city->shield_stock = pcity->shield_surplus;
       pcity->turn_last_built = game.year;
-      /* to eliminate micromanagement */
       if(is_wonder(pcity->currently_building)) {
@@ -1397,2 +1398,4 @@
       pcity->shield_stock-=unit_value(pcity->currently_building);
+      if(pcity->shield_stock > pcity->shield_surplus)
+        city->shield_stock = pcity->shield_surplus;

Regards,
I.Q.
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup



[Prev in Thread] Current Thread [Next in Thread]