mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Merge branch 'vcmi/master' into 'vcmi/develop'
This commit is contained in:
@ -218,6 +218,22 @@ void CClient::save(const std::string & fname)
|
||||
sendRequest(&save_game, PlayerColor::NEUTRAL);
|
||||
}
|
||||
|
||||
void CClient::endNetwork()
|
||||
{
|
||||
if (CGI->mh)
|
||||
CGI->mh->endNetwork();
|
||||
|
||||
if (CPlayerInterface::battleInt)
|
||||
CPlayerInterface::battleInt->endNetwork();
|
||||
|
||||
for(auto & i : playerint)
|
||||
{
|
||||
auto interface = std::dynamic_pointer_cast<CPlayerInterface>(i.second);
|
||||
if (interface)
|
||||
interface->endNetwork();
|
||||
}
|
||||
}
|
||||
|
||||
void CClient::endGame()
|
||||
{
|
||||
#if SCRIPTING_ENABLED
|
||||
|
Reference in New Issue
Block a user