mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-17 01:11:18 +00:00
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:
parent
fec4f02b1b
commit
182505af2c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue