URL:
<http://gna.org/patch/?4171>
Summary: Threaded AI and timeout -1
Project: Freeciv
Submitted by: cazfi
Submitted on: Wed 11 Sep 2013 02:32:24 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
_______________________________________________________
Details:
Timeout -1 that's supposed to progress game as fast as all players can, does
not work with threaded ai. That's because it assumes that all ai actions are
in main thread, and proceeds to next turn as soon as call to ai code
finishes.
Attached patch makes also ais to acknowledge server when they are ready. This
uses separate variable from human player turn done, so that for example
/taking ai player will give human player control of ending current turn
instead it being already pressed by the ai.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 11 Sep 2013 02:32:24 AM EEST Name: ThreadedAutogameProgress.patch
Size: 5kB By: cazfi
<http://gna.org/patch/download.php?file_id=18963>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?4171>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev