Author: cazfi
Date: Fri Jun 17 18:18:07 2016
New Revision: 32888

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

See bug #24760

Modified:
    trunk/server/citytools.c

Modified: trunk/server/citytools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/citytools.c?rev=32888&r1=32887&r2=32888&view=diff
==============================================================================
--- trunk/server/citytools.c    (original)
+++ trunk/server/citytools.c    Fri Jun 17 18:18:07 2016
@@ -79,6 +79,9 @@
 
 /* server/scripting */
 #include "script_server.h"
+
+/* ai */
+#include "handicaps.h"
 
 #include "citytools.h"
 
@@ -2871,7 +2874,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 (!is_ai(pplayer) || 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