mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
* adventure map GUI should be properly blocked during AI turn
* battle window will wait till all dialogs are closed * fixed problems with AI working after the game ended * fixed problems with overzealous redrawing of infobar
This commit is contained in:
@ -180,6 +180,10 @@ void CClient::save(const std::string & fname)
|
||||
|
||||
void CClient::endGame( bool closeConnection /*= true*/ )
|
||||
{
|
||||
//suggest interfaces to finish their stuff (AI should interrupt any bg working threads)
|
||||
BOOST_FOREACH(auto i, playerint)
|
||||
i.second->finish();
|
||||
|
||||
// Game is ending
|
||||
// Tell the network thread to reach a stable state
|
||||
if(closeConnection)
|
||||
|
Reference in New Issue
Block a user