Fixes and cleanup of game client network shutdown and restart
This commit is contained in:
1 parent
6eef197cea
commit
2c2bec791c
17 files changed
+102
-146
No files matched your search
@@ -133,18 +133,15 @@ void ApplyOnLobbyScreenNetPackVisitor::visitLobbyGuiAction(LobbyGuiAction & pack
|
||||
}
|
||||
}
|
||||
|
||||
void ApplyOnLobbyHandlerNetPackVisitor::visitLobbyEndGame(LobbyEndGame & pack)
|
||||
void ApplyOnLobbyHandlerNetPackVisitor::visitLobbyRestartGame(LobbyRestartGame & pack)
|
||||
{
|
||||
if(handler.state == EClientState::GAMEPLAY)
|
||||
{
|
||||
handler.endGameplay(pack.closeConnection, pack.restart);
|
||||
handler.restartGameplay();
|
||||
}
|
||||
|
||||
if(pack.restart)
|
||||
{
|
||||
if (handler.validateGameStart())
|
||||
handler.sendStartGame();
|
||||
}
|
||||
if (handler.validateGameStart())
|
||||
handler.sendStartGame();
|
||||
}
|
||||
|
||||
void ApplyOnLobbyHandlerNetPackVisitor::visitLobbyStartGame(LobbyStartGame & pack)
|
||||
|
||||
Reference in new issue
Block a user