forked from fte/fteqw
1
0
Fork 0

Don't crash from q3 bots.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4365 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-05-14 12:56:26 +00:00
parent a607d1a8f3
commit b076b8e7de
1 changed files with 7 additions and 4 deletions

View File

@ -644,9 +644,12 @@ void SV_DropClient (client_t *drop)
else if (ISQ3CLIENT(drop))
{
}
//send twice, to cover packetloss a little.
Netchan_Transmit (&drop->netchan, termmsg.cursize, termmsg.data, 10000);
Netchan_Transmit (&drop->netchan, termmsg.cursize, termmsg.data, 10000);
if (drop->netchan.remote_address.type != NA_INVALID)
{
//send twice, to cover packetloss a little.
Netchan_Transmit (&drop->netchan, termmsg.cursize, termmsg.data, 10000);
Netchan_Transmit (&drop->netchan, termmsg.cursize, termmsg.data, 10000);
}
if (svs.gametype == GT_PROGS || svs.gametype == GT_Q1QVM) //gamecode should do it all for us.
{
@ -1456,7 +1459,7 @@ void SVC_GetChallenge (void)
{
buf = va("challengeResponse %i", svs.challenges[i].challenge);
Netchan_OutOfBand(NS_SERVER, &net_from, strlen(buf), buf);
}
}
}
#endif
}