URL: <http://gna.org/bugs/?17635>
Summary: ai_plr_data_get() fails to refresh ai data when num known continents change Project: Freeciv Submitted by: cazfi Submitted on: Thu 03 Feb 2011 12:31:02 AM EET Category: ai Severity: 3 - Normal Priority: 5 - Normal Status: Ready For Test Assigned to: None Originator Email: Open/Closed: Open Release: Discussion Lock: Any Operating System: None Planned Release: 2.4.0 _______________________________________________________ Details: ai_plr_data_get() should refresh ai data if number of known continens has changed since last time. It fails to do that. To get old number of continents it uses adv_data_get(), but that function has side effect of updating advisor data - including number of known continents - if number of continents has changed. So the advisor data got from adv_data_get() has correct number of continents, and ai data never gets refreshed. Fix attached. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Thu 03 Feb 2011 12:31:02 AM EET Name: AiPlrDataGetFix.diff Size: 1kB By: cazfi <http://gna.org/bugs/download.php?file_id=12229> _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?17635> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev