URL: <http://gna.org/patch/?4515>
Summary: Option to leave phase open from adv_data_get() and dai_plr_data_get() Project: Freeciv Submitted by: cazfi Submitted on: Tue 18 Feb 2014 03:27:14 AM 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.3, 2.5.0, 2.6.0 _______________________________________________________ Details: If called outside players phase, adv_data_get() and dai_plr_data_get() return pointer to incomplete data (it doesn't matter if it recalculates some of the data or not) as closing the phase has freed some parts. This patchs adds bool pointer parameter to these functions. If it's not NULL, caller promises to close the phase after the call if needed. We can then leave the phase open and via that pointer set the information for the caller if it should close the phase or not. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue 18 Feb 2014 03:27:14 AM EET Name: DataClose.patch.bz2 Size: 5kB By: cazfi <http://gna.org/patch/download.php?file_id=20095> ------------------------------------------------------- Date: Tue 18 Feb 2014 03:27:14 AM EET Name: DataClose-S2_5.patch.bz2 Size: 5kB By: cazfi <http://gna.org/patch/download.php?file_id=20096> ------------------------------------------------------- Date: Tue 18 Feb 2014 03:27:14 AM EET Name: DataClose-S2_4.patch Size: 23kB By: cazfi <http://gna.org/patch/download.php?file_id=20097> _______________________________________________________ Reply to this item at: <http://gna.org/patch/?4515> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev