Changed FriendGameInfo GamePort to ConnectionPort to match ServerInfo

This commit is contained in:
Garry Newman 2019-05-23 15:10:07 +01:00
parent 91e9e162f3
commit ffb0c7a830

View File

@ -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,
};