From d2c202168048859811151086296061647f10ce50 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Mon, 20 Mar 2006 00:23:48 +0000 Subject: [PATCH] use a more sane default value with beam textures which fixes the look of the spikeset railtrail for TF nails/Q2 railgun git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2127 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/r_part.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/client/r_part.c b/engine/client/r_part.c index 20eca41c9..487ca5105 100644 --- a/engine/client/r_part.c +++ b/engine/client/r_part.c @@ -416,6 +416,7 @@ void P_ParticleEffect_f(void) skytris_t *st; qboolean settype = false; qboolean setalphadelta = false; + qboolean setbeamlen = false; part_type_t *ptype; int pnum, assoc; @@ -527,6 +528,7 @@ void P_ParticleEffect_f(void) else if (!strcmp(var, "beamtexstep")) { ptype->rotationstartmin = 1/atof(value); + setbeamlen = true; } else if (!strcmp(var, "beamtexspeed")) { @@ -974,6 +976,9 @@ void P_ParticleEffect_f(void) } } + if (ptype->type == PT_BEAM && !setbeamlen) + ptype->rotationstartmin = 1/128.0; + // use old behavior if not using alphadelta if (!setalphadelta) ptype->alphachange = (-ptype->alphachange / ptype->die) * ptype->alpha;