From 1d278afff0525628bfe8823f250276d59883f943 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Thu, 17 Jun 2010 12:38:53 +0000 Subject: [PATCH] =?UTF-8?q?Ein=20=C3=BCberfl=C3=BCssiges=20Makro=20weg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/cl_fx.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/client/cl_fx.c b/src/client/cl_fx.c index dd86773d..871130a8 100644 --- a/src/client/cl_fx.c +++ b/src/client/cl_fx.c @@ -1656,8 +1656,6 @@ void CL_BubbleTrail (vec3_t start, vec3_t end) { } } - -#define BEAMLENGTH 16 void CL_FlyParticles (vec3_t origin, int count) { int i; cparticle_t *p; @@ -1705,9 +1703,9 @@ void CL_FlyParticles (vec3_t origin, int count) { p->time = time; dist = (float)sin(ltime + i)*64; - p->org[0] = origin[0] + bytedirs[i][0]*dist + forward[0]*BEAMLENGTH; - p->org[1] = origin[1] + bytedirs[i][1]*dist + forward[1]*BEAMLENGTH; - p->org[2] = origin[2] + bytedirs[i][2]*dist + forward[2]*BEAMLENGTH; + p->org[0] = origin[0] + bytedirs[i][0]*dist + forward[0] * 16; + p->org[1] = origin[1] + bytedirs[i][1]*dist + forward[1] * 16; + p->org[2] = origin[2] + bytedirs[i][2]*dist + forward[2] * 16; VectorClear (p->vel); VectorClear (p->accel); @@ -1750,7 +1748,6 @@ void CL_FlyEffect (centity_t *ent, vec3_t origin) { CL_FlyParticles (origin, count); } -#define BEAMLENGTH 16 void CL_BfgParticles (entity_t *ent) { int i; cparticle_t *p; @@ -1795,9 +1792,9 @@ void CL_BfgParticles (entity_t *ent) { p->time = time; dist = (float)sin(ltime + i)*64; - p->org[0] = ent->origin[0] + bytedirs[i][0]*dist + forward[0]*BEAMLENGTH; - p->org[1] = ent->origin[1] + bytedirs[i][1]*dist + forward[1]*BEAMLENGTH; - p->org[2] = ent->origin[2] + bytedirs[i][2]*dist + forward[2]*BEAMLENGTH; + p->org[0] = ent->origin[0] + bytedirs[i][0]*dist + forward[0] * 16; + p->org[1] = ent->origin[1] + bytedirs[i][1]*dist + forward[1] * 16; + p->org[2] = ent->origin[2] + bytedirs[i][2]*dist + forward[2] * 16; VectorClear (p->vel); VectorClear (p->accel);