diff --git a/LobbyUI.cs b/LobbyUI.cs index 3a7afb6..7ddee05 100644 --- a/LobbyUI.cs +++ b/LobbyUI.cs @@ -447,10 +447,12 @@ namespace MSCO GUILayout.Label(mp.IsHost ? "Hosting" : "Connected", titleStyle); GUILayout.Label(mp.IsHost ? "Your game is open. Start when everyone has joined." - : "Waiting for the host to start the game.", textStyle); + : mp.IsDedicated || mp.IsConnectingToServer + ? "Connected to the server - the world is loading" + (string.IsNullOrEmpty(mp.Status) ? "." : ": " + mp.Status) + : "Waiting for the host to start the game.", textStyle); GUILayout.Space(16); - GUILayout.Label("PLAYERS " + mp.Players.Count + "/" + MultiplayerManager.MaxPlayers, captionStyle); + GUILayout.Label("PLAYERS " + mp.Players.Count + "/" + mp.SessionMaxPlayers, captionStyle); playerScroll = GUILayout.BeginScrollView(playerScroll, GUILayout.Height(170)); foreach (PlayerInfo p in mp.Players) { diff --git a/MultiplayerManager.cs b/MultiplayerManager.cs index 5d801ba..6c521f9 100644 --- a/MultiplayerManager.cs +++ b/MultiplayerManager.cs @@ -547,6 +547,10 @@ namespace MSCO string serverName; // Name des dedizierten Servers (für Discord) int serverMaxPlayers; + + /// Wie viele Spieler in diese Sitzung passen: auf einem Server dessen Limit, bei P2P 3. + public int SessionMaxPlayers { get { return (dedicated || connectingToServer) && serverMaxPlayers > 0 ? serverMaxPlayers : MaxPlayers; } } + public bool IsConnectingToServer { get { return connectingToServer; } } string presenceKey; long presenceStart; float nextPresenceUpdate;