avoid usage of ntohl/htonl

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5105 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2010-05-30 01:12:37 +00:00
parent a5e4b844b7
commit 09466ff2ac
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -670,7 +670,7 @@ int sicompare(serverinfo **ap, serverinfo **bp)
int dir = serversortdir ? -1 : 1;
if(a->weight > b->weight) return -dir;
if(a->weight < b->weight) return dir;
enet_uint32 ai = ntohl(a->address.host), bi = ntohl(b->address.host);
enet_uint32 ai = ENET_NET_TO_HOST_32(a->address.host), bi = ENET_NET_TO_HOST_32(b->address.host);
int ips = ai < bi ? -dir : (ai > bi ? dir : 0); // most steady base sorting
switch(serversort)
{