diff --git a/engine/common/net_ws.c b/engine/common/net_ws.c index bb2e71f4..cf62a87e 100644 --- a/engine/common/net_ws.c +++ b/engine/common/net_ws.c @@ -1018,16 +1018,6 @@ int NET_CompareAdrSort( const void *_a, const void *_b ) return 0; } -/* -==================== -NET_IsLocalAddress -==================== -*/ -qboolean NET_IsLocalAddress( netadr_t adr ) -{ - return (adr.type == NA_LOOPBACK) ? true : false; -} - /* ============= NET_StringToAdr diff --git a/engine/common/net_ws.h b/engine/common/net_ws.h index 085477a9..8b763f12 100644 --- a/engine/common/net_ws.h +++ b/engine/common/net_ws.h @@ -61,7 +61,6 @@ void NET_Sleep( int msec ); qboolean NET_IsActive( void ); qboolean NET_IsConfigured( void ); void NET_Config( qboolean net_enable, qboolean changeport ); -qboolean NET_IsLocalAddress( netadr_t adr ); const char *NET_AdrToString( const netadr_t a ); const char *NET_BaseAdrToString( const netadr_t a ); qboolean NET_IsReservedAdr( netadr_t a ); @@ -79,6 +78,11 @@ void NET_SendPacketEx( netsrc_t sock, size_t length, const void *data, netadr_t void NET_IP6BytesToNetadr( netadr_t *adr, const uint8_t *ip6 ); void NET_NetadrToIP6Bytes( uint8_t *ip6, const netadr_t *adr ); +static inline qboolean NET_IsLocalAddress( netadr_t adr ) +{ + return adr.type == NA_LOOPBACK ? true : false; +} + #if !XASH_DEDICATED int CL_GetSplitSize( void ); #endif