Follow-up Comment #9, patch #3829 (project freeciv):
This is why the road is also self-added to the integrators road_type_list in
packhand.c:handle_rulesets_ready() (as part of the same iteration used to
process hiders): by not forcing self in the bitvector, the implementation is
entirely separated from the representation.
An updated patch is attached that addresses the ordering and uniqueness of
integrators. I didn't like any of the ways I ended up trying to implement the
mechanism discussed in my last post, so ended up adding comments and using the
unique and sort list operators on the list.
Additional Item Attachment:
File name: allow-compatible-roads+sort-u.patch Size:15 KB
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list