From eb3b670a45279099f2f23a2dcc5d3bef306cd2a9 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 15 Jan 2014 23:28:51 +0000 Subject: [PATCH] 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 --- engine/server/sv_ents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/server/sv_ents.c b/engine/server/sv_ents.c index 6af40ce43..88f4a927e 100644 --- a/engine/server/sv_ents.c +++ b/engine/server/sv_ents.c @@ -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)*/