Author: sveinung
Date: Thu Sep 17 14:44:35 2015
New Revision: 29912

URL: http://svn.gna.org/viewcvs/freeciv?rev=29912&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 a given city.

See patch #6356

Modified:
    branches/S2_6/common/requirements.c

Modified: branches/S2_6/common/requirements.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/requirements.c?rev=29912&r1=29911&r2=29912&view=diff
==============================================================================
--- branches/S2_6/common/requirements.c (original)
+++ branches/S2_6/common/requirements.c Thu Sep 17 14:44:35 2015
@@ -1217,7 +1217,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