1
0
Fork 0
forked from fte/fteqw

Fix a bug with map restarts and missing entities.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4586 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-01-15 23:28:51 +00:00
parent a9ee530688
commit eb3b670a45

View file

@ -1147,8 +1147,8 @@ void SVFTE_EmitPacketEntities(client_t *client, packet_entities_t *to, sizebuf_t
memset(&client->sentents.entities[client->sentents.max_entities], 0, sizeof(client->sentents.entities[0]) * (j - client->sentents.max_entities));
client->sentents.max_entities = j;
}
if (j > client->sentents.num_entities)
client->sentents.num_entities = j;
while(j > client->sentents.num_entities)
client->pendingentbits[client->sentents.num_entities++] = UF_RESET|UF_RESET2;
}
/*figure out the entitys+bits that changed (removed and active)*/