1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Extracted interface through which GameHandler interacts with VCMIServer

This commit is contained in:
Ivan Savenko
2025-06-24 18:18:44 +03:00
parent 6b382a979a
commit 3d63284c51
11 changed files with 198 additions and 128 deletions

View File

@@ -144,7 +144,7 @@ void CClient::loadGame(std::shared_ptr<CGameState> initializedGameState)
logNetwork->info("Game state was transferred over network, loading.");
gamestate = initializedGameState;
gamestate->preInit(LIBRARY);
gamestate->updateOnLoad(GAME->server().si.get());
gamestate->updateOnLoad(*GAME->server().si);
logNetwork->info("Game loaded, initialize interfaces.");
initMapHandler();