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.


(file #17772)
    _______________________________________________________

Additional Item Attachment:

File name: allow-compatible-roads+sort-u.patch Size:15 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?3829>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to