mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
hide screen also for second custom campaign scen.
This commit is contained in:
@@ -78,7 +78,8 @@ void ApplyOnLobbyHandlerNetPackVisitor::visitLobbyClientConnected(LobbyClientCon
|
||||
GH.windows().popWindows(1);
|
||||
}
|
||||
|
||||
GH.windows().createAndPushWindow<CLobbyScreen>(handler.screenType, handler.campaignStateToSend && !handler.campaignStateToSend->campaignSet.empty());
|
||||
bool hideScreen = handler.campaignStateToSend && (!handler.campaignStateToSend->campaignSet.empty() || handler.campaignStateToSend->lastScenario());
|
||||
GH.windows().createAndPushWindow<CLobbyScreen>(handler.screenType, hideScreen);
|
||||
}
|
||||
handler.setState(EClientState::LOBBY);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user