mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Store and show correct player room limit in UI
This commit is contained in:
@ -58,11 +58,12 @@ void ApplyOnLobbyHandlerNetPackVisitor::visitLobbyClientConnected(LobbyClientCon
|
||||
// announce opened game room
|
||||
// TODO: find better approach?
|
||||
int roomType = settings["lobby"]["roomType"].Integer();
|
||||
int roomPlayerLimit = settings["lobby"]["roomPlayerLimit"].Integer();
|
||||
|
||||
if (roomType != 0)
|
||||
handler.getGlobalLobby().sendOpenPrivateRoom();
|
||||
handler.getGlobalLobby().sendOpenRoom("private", roomPlayerLimit);
|
||||
else
|
||||
handler.getGlobalLobby().sendOpenPublicRoom();
|
||||
handler.getGlobalLobby().sendOpenRoom("public", roomPlayerLimit);
|
||||
}
|
||||
|
||||
while (!GH.windows().findWindows<GlobalLobbyWindow>().empty())
|
||||
|
Reference in New Issue
Block a user