1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Some change

This commit is contained in:
nordsoft
2022-09-29 00:35:38 +04:00
parent 0eb589fb58
commit bebe0dd86c

View File

@@ -230,13 +230,13 @@ bool CVCMIServer::prepareToStartGame()
state = EServerState::LOBBY; state = EServerState::LOBBY;
// FIXME: dirry hack to make sure old CGameHandler::run is finished // FIXME: dirry hack to make sure old CGameHandler::run is finished
boost::this_thread::sleep(boost::posix_time::milliseconds(1000)); boost::this_thread::sleep(boost::posix_time::milliseconds(1000));
}
for(auto c : connections) for(auto c : connections)
{ {
c->enterLobbyConnectionMode(); c->enterLobbyConnectionMode();
c->disableStackSendingByID(); c->disableStackSendingByID();
} }
}
//if(!gh) //if(!gh)
gh = std::make_shared<CGameHandler>(this); gh = std::make_shared<CGameHandler>(this);