[Freeciv-Dev] [patch #6328] Replace road_type_iterate() with extra_type_by_cause_iterate(EC_ROAD) in threaded AI

2015-09-08 Thread Marko Lindqvist
Update of patch #6328 (project freeciv):

  Status:  Ready For Test => Done   
 Assigned to:None => cazfi  
 Open/Closed:Open => Closed 


___

Reply to this item at:

  

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


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


[Freeciv-Dev] [patch #6328] Replace road_type_iterate() with extra_type_by_cause_iterate(EC_ROAD) in threaded AI

2015-09-06 Thread Marko Lindqvist
URL:
  

 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



___

Reply to this item at:

  

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


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