From 0ce365a5ae961596285730b2ead0b575a6690193 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Sat, 27 Jan 2001 23:34:37 +0000 Subject: [PATCH] Hack to fix particles. --- source/cl_ents.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/cl_ents.c b/source/cl_ents.c index fc814d1..f3ca65f 100644 --- a/source/cl_ents.c +++ b/source/cl_ents.c @@ -590,8 +590,19 @@ CL_LinkPacketEntities (void) continue; // No trail if too far. + for (i = 0; i < 3; i++) + { + if (abs ((*ent)->old_origin[i] - (*ent)->origin[i]) > 128) + { + // if too far + VectorCopy ((*ent)->origin, (*ent)->old_origin); + break; + } + } +/* FIXME: If swapped with above for loop, particle trails go away if (VectorDistance_fast((*ent)->old_origin, (*ent)->origin) > (128^2)) VectorCopy ((*ent)->origin, (*ent)->old_origin); + */ if (model->flags & EF_ROCKET) { dl = CL_AllocDlight (-(*ent)->keynum);