Author: sveinung
Date: Thu Sep 17 14:43:06 2015
New Revision: 29910

URL: http://svn.gna.org/viewcvs/freeciv?rev=29910&view=rev
Log:
Make local building requirements city independent

Only check the target building when handling a local building requirement.
The city range can be used to check its status in the target city.

See patch #6356

Modified:
    trunk/common/requirements.c

Modified: trunk/common/requirements.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/requirements.c?rev=29910&r1=29909&r2=29910&view=diff
==============================================================================
--- trunk/common/requirements.c (original)
+++ trunk/common/requirements.c Thu Sep 17 14:43:06 2015
@@ -1255,7 +1255,7 @@
     case REQ_RANGE_LOCAL:
       if (target_building) {
         if (target_building == source) {
-          return BOOL_TO_TRISTATE(num_city_buildings(target_city, source) > 0);
+          return TRI_YES;
         } else {
           return TRI_NO;
         }


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

Reply via email to