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

Fixes and cleanup of game client network shutdown and restart

This commit is contained in:
Ivan Savenko
2024-02-03 19:08:45 +02:00
parent 6eef197cea
commit 2c2bec791c
17 changed files with 102 additions and 146 deletions

View File

@@ -111,17 +111,12 @@ struct DLL_LINKAGE LobbyLoadProgress : public CLobbyPackToPropagate
}
};
struct DLL_LINKAGE LobbyEndGame : public CLobbyPackToPropagate
struct DLL_LINKAGE LobbyRestartGame : public CLobbyPackToPropagate
{
bool closeConnection = false;
bool restart = false;
void visitTyped(ICPackVisitor & visitor) override;
template <typename Handler> void serialize(Handler &h)
{
h & closeConnection;
h & restart;
}
};