From 56d17eac69e464a28fe0faa70eeb23b436bd778a Mon Sep 17 00:00:00 2001 From: Seongun Byeon Date: Sat, 23 Nov 2024 09:14:36 +0900 Subject: [PATCH] fix: remove the part that increases the maximum size of cap by +1 --- WFDS.Common/Steam/LobbyManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WFDS.Common/Steam/LobbyManager.cs b/WFDS.Common/Steam/LobbyManager.cs index 28ff5ea..e795423 100644 --- a/WFDS.Common/Steam/LobbyManager.cs +++ b/WFDS.Common/Steam/LobbyManager.cs @@ -191,12 +191,12 @@ private void UpdateLobbyData(in CSteamID lobbyId) SteamMatchmaking.SetLobbyData(lobbyId, "name", _name); SteamMatchmaking.SetLobbyData(lobbyId, "adult", _adult ? "true" : "false"); SteamMatchmaking.SetLobbyData(lobbyId, "code", _code); - SteamMatchmaking.SetLobbyData(lobbyId, "cap", (_cap + 1).ToString()); + SteamMatchmaking.SetLobbyData(lobbyId, "cap", _cap.ToString()); SteamMatchmaking.SetLobbyData(lobbyId, "banned_players", ""); SetLobbyType(lobbyId, _lobbyType); - SteamMatchmaking.SetLobbyMemberLimit(lobbyId, _cap + 1); + SteamMatchmaking.SetLobbyMemberLimit(lobbyId, _cap); SteamMatchmaking.SetLobbyJoinable(lobbyId, true); ConsoleHelper.UpdateConsoleTitle(_name, _code, 0, _cap);