beam fix
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@355 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
4f36d50f60
commit
dff7e8bc0f
1 changed files with 7 additions and 9 deletions
|
@ -2278,16 +2278,14 @@ void R_RocketTrail (vec3_t start, vec3_t end, int type, trailstate_t *ts)
|
||||||
|
|
||||||
b->flags |= BS_LASTSEG;
|
b->flags |= BS_LASTSEG;
|
||||||
ts->lastbeam = b;
|
ts->lastbeam = b;
|
||||||
|
}
|
||||||
|
|
||||||
if (!free_particles || !free_beams)
|
|
||||||
{
|
if ((!free_particles || !free_beams) && ts->lastbeam)
|
||||||
if (ts->lastbeam)
|
{
|
||||||
{
|
ts->lastbeam->flags &= ~BS_LASTSEG;
|
||||||
b->flags &= ~BS_LASTSEG;
|
ts->lastbeam->flags |= BS_NODRAW;
|
||||||
b->flags |= BS_NODRAW;
|
ts->lastbeam = NULL;
|
||||||
ts->lastbeam = NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue