summaryrefslogtreecommitdiff
path: root/source/net_sock.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-06-13 17:26:28 +0000
committerAndrey Nazarov <skuller@skuller.net>2010-06-13 17:26:28 +0000
commita4c98a614298d56fae192528323dcc74c5465e75 (patch)
treea29b39c0c35f2aa2ff831db5a0b9258bc15970ec /source/net_sock.h
parentb4778982f31e6465cd7a61a16cc57add05c2eb46 (diff)
Fixed endianess issues in *.wav and *.tga loading code.
Renamed MakeLong/MakeShort macros into MakeRawLong/MakeRawShort to prevent further confusion. Introduced LittleLongMem/LittleShortMem and RawLongMem/RawShortMem macros. Use more efficient versions of ShortSwap/LongSwap functions.
Diffstat (limited to 'source/net_sock.h')
-rw-r--r--source/net_sock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/net_sock.h b/source/net_sock.h
index fb8a970..2669e09 100644
--- a/source/net_sock.h
+++ b/source/net_sock.h
@@ -116,8 +116,8 @@ static inline qboolean NET_IsLanAddress( const netadr_t *adr ) {
if( adr->ip[0] == 127 || adr->ip[0] == 10 ) {
return qtrue;
}
- if( *( uint16_t * )adr->ip == MakeShort( 192, 168 ) ||
- *( uint16_t * )adr->ip == MakeShort( 172, 16 ) )
+ if( *( uint16_t * )adr->ip == MakeRawShort( 192, 168 ) ||
+ *( uint16_t * )adr->ip == MakeRawShort( 172, 16 ) )
{
return qtrue;
}