mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Better handling of AI shutdown
This commit is contained in:
@ -653,6 +653,8 @@ void CServerHandler::showHighScoresAndEndGameplay(PlayerColor player, bool victo
|
||||
|
||||
void CServerHandler::endGameplay()
|
||||
{
|
||||
client->finishGameplay();
|
||||
|
||||
// Game is ending
|
||||
// Tell the network thread to reach a stable state
|
||||
sendClientDisconnecting();
|
||||
@ -671,6 +673,7 @@ void CServerHandler::endGameplay()
|
||||
|
||||
void CServerHandler::restartGameplay()
|
||||
{
|
||||
client->finishGameplay();
|
||||
client->endGame();
|
||||
client.reset();
|
||||
|
||||
|
Reference in New Issue
Block a user