mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 18:52:28 +00:00
hopefully fix our rocket trail problem
This commit is contained in:
parent
6faf095a18
commit
777495e069
1 changed files with 8 additions and 10 deletions
|
@ -483,8 +483,16 @@ CL_LinkPacketEntities (void)
|
||||||
|
|
||||||
// set frame
|
// set frame
|
||||||
(*ent)->frame = s1->frame;
|
(*ent)->frame = s1->frame;
|
||||||
|
|
||||||
if ((*ent)->visframe != r_framecount - 1) {
|
if ((*ent)->visframe != r_framecount - 1) {
|
||||||
(*ent)->pose1 = (*ent)->pose2 = -1;
|
(*ent)->pose1 = (*ent)->pose2 = -1;
|
||||||
|
|
||||||
|
// No trail if new this frame
|
||||||
|
VectorCopy (s1->origin, (*ent)->origin);
|
||||||
|
VectorCopy ((*ent)->origin, (*ent)->old_origin);
|
||||||
|
} else {
|
||||||
|
VectorCopy ((*ent)->origin, (*ent)->old_origin);
|
||||||
|
VectorCopy (s1->origin, (*ent)->origin);
|
||||||
}
|
}
|
||||||
(*ent)->visframe = r_framecount;
|
(*ent)->visframe = r_framecount;
|
||||||
|
|
||||||
|
@ -496,9 +504,6 @@ CL_LinkPacketEntities (void)
|
||||||
VectorCopy(s1->angles, (*ent)->angles);
|
VectorCopy(s1->angles, (*ent)->angles);
|
||||||
}
|
}
|
||||||
|
|
||||||
VectorCopy ((*ent)->origin, (*ent)->old_origin);
|
|
||||||
VectorCopy (s1->origin, (*ent)->origin);
|
|
||||||
|
|
||||||
// add automatic particle trails
|
// add automatic particle trails
|
||||||
if (!model->flags)
|
if (!model->flags)
|
||||||
continue;
|
continue;
|
||||||
|
@ -511,13 +516,6 @@ CL_LinkPacketEntities (void)
|
||||||
dl->die = cl.time + 0.1;
|
dl->die = cl.time + 0.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// No trail if too far.
|
|
||||||
if (VectorDistance_fast((*ent)->old_origin, (*ent)->origin) >
|
|
||||||
(256*256)) {
|
|
||||||
VectorCopy ((*ent)->origin, (*ent)->old_origin);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (model->flags & EF_ROCKET)
|
if (model->flags & EF_ROCKET)
|
||||||
R_RocketTrail (*ent);
|
R_RocketTrail (*ent);
|
||||||
else if (model->flags & EF_GRENADE)
|
else if (model->flags & EF_GRENADE)
|
||||||
|
|
Loading…
Reference in a new issue