Trying to fix crashes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4264 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
610b2014de
commit
5c67517cb5
1 changed files with 3 additions and 1 deletions
|
@ -433,6 +433,7 @@ void SV_EmitCSQCUpdate(client_t *client, sizebuf_t *msg, qbyte svcnumber)
|
||||||
void SV_CSQC_DroppedPacket(client_t *client, int sequence)
|
void SV_CSQC_DroppedPacket(client_t *client, int sequence)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
int m;
|
||||||
//skip it if we never generated that frame, to avoid pulling in stale data
|
//skip it if we never generated that frame, to avoid pulling in stale data
|
||||||
if (client->frameunion.frames[sequence & UPDATE_MASK].sequence != sequence)
|
if (client->frameunion.frames[sequence & UPDATE_MASK].sequence != sequence)
|
||||||
{
|
{
|
||||||
|
@ -462,7 +463,8 @@ void SV_CSQC_DroppedPacket(client_t *client, int sequence)
|
||||||
if (!(client->csqcactive)) //we don't need this, but it might be a little faster.
|
if (!(client->csqcactive)) //we don't need this, but it might be a little faster.
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = 0; i < sv.world.num_edicts; i++)
|
m = min(sv.world.num_edicts, client->max_net_ents);
|
||||||
|
for (i = 0; i < m; i++)
|
||||||
if (client->csqcentsequence[i] == sequence)
|
if (client->csqcentsequence[i] == sequence)
|
||||||
client->csqcentversions[i]--; //do that update thang (but later).
|
client->csqcentversions[i]--; //do that update thang (but later).
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue