Author: cazfi
Date: Sat Apr 25 22:45:32 2015
New Revision: 28874

URL: http://svn.gna.org/viewcvs/freeciv?rev=28874&view=rev
Log:
Reverted bug #21999 that stopped AI from considering value of effects lost
via present=FALSE requirement if a building gets built.

See bug #21999

Modified:
    trunk/server/advisors/advdata.c

Modified: trunk/server/advisors/advdata.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/advisors/advdata.c?rev=28874&r1=28873&r2=28874&view=diff
==============================================================================
--- trunk/server/advisors/advdata.c     (original)
+++ trunk/server/advisors/advdata.c     Sat Apr 25 22:45:32 2015
@@ -109,8 +109,7 @@
       case EFT_UPKEEP_FREE:
        requirement_vector_iterate(&peffect->reqs, preq) {
          if (VUT_IMPROVEMENT == preq->source.kind
-             && preq->source.value.building == pimprove
-              && preq->present) {
+             && preq->source.value.building == pimprove) {
             if (adv->impr_calc[improvement_index(pimprove)] != 
ADV_IMPR_CALCULATE_FULL) {
              adv->impr_calc[improvement_index(pimprove)] = ADV_IMPR_CALCULATE;
             }
@@ -125,8 +124,7 @@
       case EFT_OUTPUT_INC_TILE:
        requirement_vector_iterate(&peffect->reqs, preq) {
          if (VUT_IMPROVEMENT == preq->source.kind
-             && preq->source.value.building == pimprove
-              && preq->present) {
+             && preq->source.value.building == pimprove) {
            adv->impr_calc[improvement_index(pimprove)] = 
ADV_IMPR_CALCULATE_FULL;
            if (preq->range > adv->impr_range[improvement_index(pimprove)]) {
              adv->impr_range[improvement_index(pimprove)] = preq->range;


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

Reply via email to