Author: cazfi
Date: Sun Jun 26 16:31:02 2016
New Revision: 33035

URL: http://svn.gna.org/viewcvs/freeciv?rev=33035&view=rev
Log:
Added object removal validity check to check goods reqs.

See patch #7318

Modified:
    trunk/tools/ruledit/validity.c

Modified: trunk/tools/ruledit/validity.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/tools/ruledit/validity.c?rev=33035&r1=33034&r2=33035&view=diff
==============================================================================
--- trunk/tools/ruledit/validity.c      (original)
+++ trunk/tools/ruledit/validity.c      Sun Jun 26 16:31:02 2016
@@ -120,6 +120,13 @@
     }
   } extra_type_iterate_end;
 
+  goods_type_iterate(pgood) {
+    if (universal_in_req_vec(uni, &pgood->reqs)) {
+      cb(goods_rule_name(pgood), data);
+      needed = TRUE;
+    }
+  } goods_type_iterate_end;
+
   action_iterate(act) {
     action_enabler_list_iterate(action_enablers_for_action(act), enabler) {
       if (universal_in_req_vec(uni, &(enabler->actor_reqs))


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

Reply via email to