Author: cazfi
Date: Fri Jun 17 18:18:17 2016
New Revision: 32890

URL: http://svn.gna.org/viewcvs/freeciv?rev=32890&view=rev
Log:
Do not penalize AI production changes, even when the change is one
from the worklist or advisor.

See bug #24760

Modified:
    branches/S2_5/server/citytools.c

Modified: branches/S2_5/server/citytools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/citytools.c?rev=32890&r1=32889&r2=32890&view=diff
==============================================================================
--- branches/S2_5/server/citytools.c    (original)
+++ branches/S2_5/server/citytools.c    Fri Jun 17 18:18:17 2016
@@ -2808,7 +2808,9 @@
 
   /* Manage the city change-production penalty.
      (May penalize, restore or do nothing to the shield_stock.) */
-  pcity->shield_stock = city_change_production_penalty(pcity, target);
+  if (!pplayer->ai_controlled || ai_handicap(pplayer, H_AWAY)) {
+    pcity->shield_stock = city_change_production_penalty(pcity, target);
+  }
 
   /* Change build target. */
   pcity->production = target;


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to