From 3b08ac89d0bb9414f0eb4400374f8f4e3cb16a59 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 3 Dec 2010 17:15:11 +0900 Subject: [PATCH] Unlink the entity's efrags when removing the entity. --- qw/source/cl_ents.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qw/source/cl_ents.c b/qw/source/cl_ents.c index e7b627580..0e70cf6e0 100644 --- a/qw/source/cl_ents.c +++ b/qw/source/cl_ents.c @@ -389,6 +389,8 @@ CL_ParsePacketEntities (qboolean delta) } if (word & U_REMOVE) { // Clear the entity entity_t *ent = &cl_packet_ents[newnum]; + if (ent->efrag) + R_RemoveEfrags (ent); memset (ent, 0, sizeof (entity_t)); oldindex++; continue;