From 2fb0df5ae3070b91a645f6d3085695c3500f1195 Mon Sep 17 00:00:00 2001 From: Jesse Fish Date: Tue, 13 Mar 2018 20:11:28 -0700 Subject: [PATCH 1/2] Correctly handle lobby refresh with null filter Currently if a null filter is given, more filters are added to the call than expected. This change makes a lobby request after the appid filter is added and returns immediately resolving the issue. --- Facepunch.Steamworks/Client/LobbyList.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Facepunch.Steamworks/Client/LobbyList.cs b/Facepunch.Steamworks/Client/LobbyList.cs index a8ed9a2..4470973 100644 --- a/Facepunch.Steamworks/Client/LobbyList.cs +++ b/Facepunch.Steamworks/Client/LobbyList.cs @@ -41,6 +41,8 @@ public void Refresh ( Filter filter = null) { filter = new Filter(); filter.StringFilters.Add("appid", client.AppId.ToString()); + client.native.matchmaking.RequestLobbyList(OnLobbyList); + return; } client.native.matchmaking.AddRequestLobbyListDistanceFilter((SteamNative.LobbyDistanceFilter)filter.DistanceFilter); From ebef55c42802410365360361e951632b2135d87c Mon Sep 17 00:00:00 2001 From: kscarlett Date: Wed, 14 Mar 2018 11:09:00 +0000 Subject: [PATCH 2/2] Fixed documentation comment for Lobby.Create() --- Facepunch.Steamworks/Client/Lobby.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/Client/Lobby.cs b/Facepunch.Steamworks/Client/Lobby.cs index ccca631..fb2c163 100644 --- a/Facepunch.Steamworks/Client/Lobby.cs +++ b/Facepunch.Steamworks/Client/Lobby.cs @@ -92,7 +92,7 @@ void OnLobbyJoinedAPI( LobbyEnter_t callback, bool error ) public Action OnLobbyJoined; /// - /// Creates a lobby and returns the created lobby. You auto join the created lobby. The lobby is stored in Client.CurrentLobby if successful. + /// Creates a lobby and returns the created lobby. You auto join the created lobby. The lobby is stored in Client.Lobby.CurrentLobby if successful. /// /// The Lobby.Type of Lobby to be created /// The maximum amount of people you want to be able to be in this lobby, including yourself