Skip to content

Commit

Permalink
fix: remove the part that increases the maximum size of cap by +1
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu1537 committed Nov 23, 2024
1 parent 66176a6 commit 56d17ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WFDS.Common/Steam/LobbyManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 56d17ea

Please sign in to comment.