Don't try using QW extensions in Q2.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@480 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
4805ea3409
commit
5b2eb1c44b
1 changed files with 25 additions and 21 deletions
|
@ -844,33 +844,37 @@ void SVC_GetChallenge (void)
|
|||
buf = va("%c%i", S2C_CHALLENGE, svs.challenges[i].challenge);
|
||||
|
||||
over = buf + strlen(buf) + 1;
|
||||
#ifdef PROTOCOL_VERSION_FTE
|
||||
//tell the client what fte extensions we support
|
||||
if (svs.fteprotocolextensions)
|
||||
{
|
||||
lng = LittleLong(PROTOCOL_VERSION_FTE);
|
||||
memcpy(over, &lng, sizeof(int));
|
||||
over+=4;
|
||||
|
||||
lng = LittleLong(svs.fteprotocolextensions);
|
||||
memcpy(over, &lng, sizeof(long));
|
||||
over+=4;
|
||||
}
|
||||
if (svprogfuncs)
|
||||
{
|
||||
#ifdef PROTOCOL_VERSION_FTE
|
||||
//tell the client what fte extensions we support
|
||||
if (svs.fteprotocolextensions)
|
||||
{
|
||||
lng = LittleLong(PROTOCOL_VERSION_FTE);
|
||||
memcpy(over, &lng, sizeof(int));
|
||||
over+=4;
|
||||
|
||||
lng = LittleLong(svs.fteprotocolextensions);
|
||||
memcpy(over, &lng, sizeof(long));
|
||||
over+=4;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HUFFNETWORK
|
||||
compressioncrc = Huff_PreferedCompressionCRC();
|
||||
if (compressioncrc)
|
||||
{
|
||||
lng = LittleLong((('H'<<0) + ('U'<<8) + ('F'<<16) + ('F' << 24)));
|
||||
memcpy(over, &lng, sizeof(int));
|
||||
over+=4;
|
||||
compressioncrc = Huff_PreferedCompressionCRC();
|
||||
if (compressioncrc)
|
||||
{
|
||||
lng = LittleLong((('H'<<0) + ('U'<<8) + ('F'<<16) + ('F' << 24)));
|
||||
memcpy(over, &lng, sizeof(int));
|
||||
over+=4;
|
||||
|
||||
lng = LittleLong(compressioncrc);
|
||||
memcpy(over, &lng, sizeof(long));
|
||||
over+=4;
|
||||
}
|
||||
lng = LittleLong(compressioncrc);
|
||||
memcpy(over, &lng, sizeof(long));
|
||||
over+=4;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Netchan_OutOfBand(NS_SERVER, net_from, strlen(buf)+1+4+4, buf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue