mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-07 10:38:23 +00:00
Add ctor for ns_address from netadr_t.
This commit is contained in:
parent
1e7c5c8b92
commit
2076b6e040
@ -83,6 +83,12 @@ enum ENSAddressType
|
||||
|
||||
class ns_address
|
||||
{
|
||||
public:
|
||||
ns_address( const netadr_t &adr )
|
||||
{
|
||||
m_Address = adr;
|
||||
m_AddressType = kAddressDirect;
|
||||
}
|
||||
public:
|
||||
const netadr_t &GetAddress() const { return m_Address; }
|
||||
const CSteamID& GetSteamID() const { return m_ID; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user