Author: cazfi
Date: Sun Feb  1 08:05:51 2015
New Revision: 27924

URL: http://svn.gna.org/viewcvs/freeciv?rev=27924&view=rev
Log:
AI considers building effects that also affect allies. It still ignores 
world-range
effects out of fear that they then benefit enemies more than itself.

Requested by Jacob Nevins <jtn>

See bug #21415

Modified:
    trunk/ai/default/aicity.c

Modified: trunk/ai/default/aicity.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/aicity.c?rev=27924&r1=27923&r2=27924&view=diff
==============================================================================
--- trunk/ai/default/aicity.c   (original)
+++ trunk/ai/default/aicity.c   Sun Feb  1 08:05:51 2015
@@ -84,13 +84,13 @@
 
 /* Iterate over cities within a certain range around a given city
  * (city_here) that exist within a given city list. */
-/* FIXME: should this include REQ_RANGE_ALLIANCE/WORLD? Gna bug #21415. */
 #define city_range_iterate(city_here, list, range, city)               \
 {                                                                      \
   city_list_iterate(list, city) {                                      \
     if (range == REQ_RANGE_PLAYER                                      \
-     || range == REQ_RANGE_TEAM                                                
\
-     || (range == REQ_RANGE_TRADEROUTE                                  \
+        || range == REQ_RANGE_TEAM                                     \
+        || range == REQ_RANGE_ALLIANCE                                  \
+        || (range == REQ_RANGE_TRADEROUTE                               \
          && (city == city_here                                          \
              || have_cities_trade_route(city, city_here)))              \
      || ((range == REQ_RANGE_CITY || range == REQ_RANGE_LOCAL)         \


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

Reply via email to