mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Unlink the entity's efrags when removing the entity.
This commit is contained in:
parent
a6941e27ef
commit
3b08ac89d0
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue