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:
parent
a607d1a8f3
commit
b076b8e7de
1 changed files with 7 additions and 4 deletions
|
@ -644,9 +644,12 @@ void SV_DropClient (client_t *drop)
|
||||||
else if (ISQ3CLIENT(drop))
|
else if (ISQ3CLIENT(drop))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
//send twice, to cover packetloss a little.
|
if (drop->netchan.remote_address.type != NA_INVALID)
|
||||||
Netchan_Transmit (&drop->netchan, termmsg.cursize, termmsg.data, 10000);
|
{
|
||||||
Netchan_Transmit (&drop->netchan, termmsg.cursize, termmsg.data, 10000);
|
//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.
|
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);
|
buf = va("challengeResponse %i", svs.challenges[i].challenge);
|
||||||
Netchan_OutOfBand(NS_SERVER, &net_from, strlen(buf), buf);
|
Netchan_OutOfBand(NS_SERVER, &net_from, strlen(buf), buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue