1
0
Fork 0
forked from fte/fteqw

Fixed some endian issues with FTE protocol extensions.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2214 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2006-04-16 00:41:54 +00:00
parent b97416a2ab
commit 713b3ddeff

View file

@ -489,13 +489,13 @@ void CL_SendConnectPacket (
#ifdef PROTOCOL_VERSION_FTE #ifdef PROTOCOL_VERSION_FTE
if (ftepext) if (ftepext)
strcat(data, va("0x%x 0x%x\n", PROTOCOL_VERSION_FTE, fteprotextsupported)); strcat(data, va("0x%x 0x%x\n", LittleLong(PROTOCOL_VERSION_FTE), LittleLong(fteprotextsupported)));
#endif #endif
#ifdef HUFFNETWORK #ifdef HUFFNETWORK
if (compressioncrc && Huff_CompressionCRC(compressioncrc)) if (compressioncrc && Huff_CompressionCRC(compressioncrc))
{ {
strcat(data, va("0x%x 0x%x\n", (('H'<<0) + ('U'<<8) + ('F'<<16) + ('F' << 24)), compressioncrc)); strcat(data, va("0x%x 0x%x\n", (('H'<<0) + ('U'<<8) + ('F'<<16) + ('F' << 24)), LittleLong(compressioncrc)));
cls.netchan.compress = true; cls.netchan.compress = true;
} }
else else