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

Progress update on client side

This commit is contained in:
nordsoft
2023-08-21 18:56:01 +04:00
parent 584dd20943
commit 45f13c7964
10 changed files with 51 additions and 12 deletions

View File

@@ -131,7 +131,10 @@ void ApplyOnLobbyHandlerNetPackVisitor::visitLobbyStartGame(LobbyStartGame & pac
void ApplyOnLobbyScreenNetPackVisitor::visitLobbyLoadProgress(LobbyLoadProgress & pack)
{
if(auto w = GH.windows().topWindow<CLoadingScreen>())
{
w->set(pack.progress);
w->redraw();
}
else
GH.windows().createAndPushWindow<CLoadingScreen>();
}