From dff7e8bc0fdb92613cade37cd93cf4fa0eca3e59 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Tue, 19 Oct 2004 16:27:30 +0000 Subject: [PATCH] beam fix git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@355 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/r_part.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/engine/client/r_part.c b/engine/client/r_part.c index f6598afa0..e72361347 100644 --- a/engine/client/r_part.c +++ b/engine/client/r_part.c @@ -2278,16 +2278,14 @@ void R_RocketTrail (vec3_t start, vec3_t end, int type, trailstate_t *ts) b->flags |= BS_LASTSEG; ts->lastbeam = b; + } - if (!free_particles || !free_beams) - { - if (ts->lastbeam) - { - b->flags &= ~BS_LASTSEG; - b->flags |= BS_NODRAW; - ts->lastbeam = NULL; - } - } + + if ((!free_particles || !free_beams) && ts->lastbeam) + { + ts->lastbeam->flags &= ~BS_LASTSEG; + ts->lastbeam->flags |= BS_NODRAW; + ts->lastbeam = NULL; } }