Author: cazfi Date: Wed May 10 21:14:43 2017 New Revision: 35497 URL: http://svn.gna.org/viewcvs/freeciv?rev=35497&view=rev Log: Consider extra, that is visibility_req of another one, needed
See hrm Bug #658575 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=35497&r1=35496&r2=35497&view=diff ============================================================================== --- trunk/tools/ruledit/validity.c (original) +++ trunk/tools/ruledit/validity.c Wed May 10 21:14:43 2017 @@ -190,6 +190,16 @@ } } unit_type_iterate_end; + extra_type_iterate(pextra) { + if (pextra->visibility_req == advance_number(padv)) { + char buf[512]; + + fc_snprintf(buf, sizeof(buf), "%s visibility", + extra_rule_name(pextra)); + cb(buf, data); + } + } extra_type_iterate_end; + needed |= is_universal_needed(&uni, cb, data); return needed; _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits