URL:
<http://gna.org/patch/?6328>
Summary: Replace road_type_iterate() with
extra_type_by_cause_iterate(EC_ROAD) in threaded AI
Project: Freeciv
Submitted by: cazfi
Submitted on: Sun 06 Sep 2015 09:35:22 AM EEST
Category: ai
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.6.0, 3.0.0
_______________________________________________________
Details:
Eventually we should get rid of road_type_iterate() completely as it's never
better than using extra_type_by_cause_iterate() directly (road_type_iterate()
uses it internally anyway). In most cases there's a benefit in having access
to the extra from extra_type_by_cause_iterate(). road_type_iterate() converts
extra -> road, and then most callers then make road -> extra conversions,
either directly or by calling functions that do it; tile_has_road() instead of
direct tile_has_extra() etc.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 06 Sep 2015 09:35:22 AM EEST Name:
ThreadedExtraCauseRoadIterate.patch Size: 1kB By: cazfi
<http://gna.org/patch/download.php?file_id=25070>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?6328>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev