URL:
<http://gna.org/patch/?2423>
Summary: Recalculate default ai data when continents
discovered
Project: Freeciv
Submitted by: cazfi
Submitted on: Thu 27 Jan 2011 01:21:15 PM EET
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.4.0
_______________________________________________________
Details:
Advisor data is recalculated on adv_data_get() if number of continents has
changed since last recalculation. This patch adds similar recalculation to
default ai data function ai_plr_data_get(). This is needed in the future (with
already submitted, but without this broken, patches) as we move default ai
specific members from advisor data to ai data. Those members require this
refresh when new continents are discovered.
I don't yet know if we can eventually remove that refresh from
adv_data_get(). Common advisor code would certainly be cleaner without such
hack.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 27 Jan 2011 01:21:15 PM EET Name: AiDataRecalcOnGet.diff Size:
1kB By: cazfi
<http://gna.org/patch/download.php?file_id=12126>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?2423>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev