mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Simplified connection logic
This commit is contained in:
@@ -43,7 +43,12 @@ void ApplyOnLobbyHandlerNetPackVisitor::visitLobbyClientConnected(LobbyClientCon
|
||||
if(handler.mapToStart)
|
||||
handler.setMapInfo(handler.mapToStart);
|
||||
else if(!settings["session"]["headless"].Bool())
|
||||
{
|
||||
if (GH.windows().topWindow<CSimpleJoinScreen>())
|
||||
GH.windows().popWindows(1);
|
||||
|
||||
GH.windows().createAndPushWindow<CLobbyScreen>(static_cast<ESelectionScreen>(handler.screenType));
|
||||
}
|
||||
handler.state = EClientState::LOBBY;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user