mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
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:
parent
a9ee530688
commit
eb3b670a45
1 changed files with 2 additions and 2 deletions
|
@ -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)*/
|
||||
|
|
Loading…
Reference in a new issue