Make master server browsing work on big endian.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1026 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2005-05-18 21:21:43 +00:00
parent fec4f02b1b
commit 182505af2c

View file

@ -1414,7 +1414,7 @@ void CL_MasterListParse(int type, qboolean slashpad)
p1 = MSG_ReadByte();
p2 = MSG_ReadByte();
info->adr.port = (int)((short)(p1 + (p2<<8)));
info->adr.port = htons((p1<<8)|p2);
if (!info->adr.port)
{
Z_Free(info);