From ffb0c7a830f29a96ba7e1f3b722e7b234c5e4a86 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Thu, 23 May 2019 15:10:07 +0100 Subject: [PATCH] Changed FriendGameInfo GamePort to ConnectionPort to match ServerInfo --- Facepunch.Steamworks/Structs/Friend.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Facepunch.Steamworks/Structs/Friend.cs b/Facepunch.Steamworks/Structs/Friend.cs index ea4a91b..5a3da5e 100644 --- a/Facepunch.Steamworks/Structs/Friend.cs +++ b/Facepunch.Steamworks/Structs/Friend.cs @@ -118,9 +118,10 @@ public struct FriendGameInfo internal uint GameIP; // m_unGameIP uint32 internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID - public int GamePort; + public int ConnectionPort; public int QueryPort; + public uint IpAddressRaw => GameIP; public System.Net.IPAddress IpAddress => Utility.Int32ToIp( GameIP ); public Lobby? Lobby @@ -138,7 +139,7 @@ internal static FriendGameInfo From( FriendGameInfo_t i ) { GameID = i.GameID, GameIP = i.GameIP, - GamePort = i.GamePort, + ConnectionPort = i.GamePort, QueryPort = i.QueryPort, SteamIDLobby = i.SteamIDLobby, };