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

CGameHandler no longer inherits CGameInfoCallback, reduce direct access

to gamestate
This commit is contained in:
Ivan Savenko
2025-05-20 19:01:25 +03:00
parent 25e57542be
commit 8255a4b9ae
30 changed files with 271 additions and 295 deletions

View File

@@ -633,7 +633,7 @@ void CServerHandler::startGameplay(std::shared_ptr<CGameState> gameState)
throw std::runtime_error("Invalid mode");
}
// After everything initialized we can accept CPackToClient netpacks
logicConnection->enterGameplayConnectionMode(client->gameState());
logicConnection->setCallback(&client->gameState());
setState(EClientState::GAMEPLAY);
}