Author: cazfi
Date: Fri Jun 17 18:18:12 2016
New Revision: 32889

URL: http://svn.gna.org/viewcvs/freeciv?rev=32889&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_6/server/citytools.c

Modified: branches/S2_6/server/citytools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/citytools.c?rev=32889&r1=32888&r2=32889&view=diff
==============================================================================
--- branches/S2_6/server/citytools.c    (original)
+++ branches/S2_6/server/citytools.c    Fri Jun 17 18:18:12 2016
@@ -79,6 +79,9 @@
 
 /* server/scripting */
 #include "script_server.h"
+
+/* ai */
+#include "handicaps.h"
 
 #include "citytools.h"
 
@@ -2811,7 +2814,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 || has_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