mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-16 16:41:30 +00:00
Better fix for the rocket trail problem, was my mistake.
(^ is xor, not power of.)
This commit is contained in:
parent
030f721d89
commit
2a723b5766
1 changed files with 1 additions and 12 deletions
|
@ -590,19 +590,8 @@ CL_LinkPacketEntities (void)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// No trail if too far.
|
// No trail if too far.
|
||||||
for (i = 0; i < 3; i++)
|
if (VectorDistance_fast((*ent)->old_origin, (*ent)->origin) > (256*256))
|
||||||
{
|
|
||||||
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);
|
VectorCopy ((*ent)->origin, (*ent)->old_origin);
|
||||||
*/
|
|
||||||
|
|
||||||
if (model->flags & EF_ROCKET) {
|
if (model->flags & EF_ROCKET) {
|
||||||
dl = CL_AllocDlight (-(*ent)->keynum);
|
dl = CL_AllocDlight (-(*ent)->keynum);
|
||||||
|
|
Loading…
Reference in a new issue