mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Show loading screen immediately on restart
This commit is contained in:
@@ -537,6 +537,8 @@ void CServerHandler::sendGuiAction(ui8 action) const
|
|||||||
|
|
||||||
void CServerHandler::sendRestartGame() const
|
void CServerHandler::sendRestartGame() const
|
||||||
{
|
{
|
||||||
|
GH.windows().createAndPushWindow<CLoadingScreen>();
|
||||||
|
|
||||||
LobbyEndGame endGame;
|
LobbyEndGame endGame;
|
||||||
endGame.closeConnection = false;
|
endGame.closeConnection = false;
|
||||||
endGame.restart = true;
|
endGame.restart = true;
|
||||||
|
Reference in New Issue
Block a user