[Freeciv-Dev] Re: BUG/PATCH: Overproduction problems (PR#670)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
|
|