mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Fix "Start game" blocking status:
- Start game is now initially blocked - Receiving valid startInfo from server will unlock button
This commit is contained in:
@@ -102,7 +102,10 @@ void ApplyOnLobbyHandlerNetPackVisitor::visitLobbyEndGame(LobbyEndGame & pack)
|
||||
}
|
||||
|
||||
if(pack.restart)
|
||||
handler.sendStartGame();
|
||||
{
|
||||
if (handler.validateGameStart())
|
||||
handler.sendStartGame();
|
||||
}
|
||||
}
|
||||
|
||||
void ApplyOnLobbyHandlerNetPackVisitor::visitLobbyStartGame(LobbyStartGame & pack)
|
||||
|
||||
Reference in New Issue
Block a user