From 2acc7afa285e84c26ff023c5a109162828dedb26 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Fri, 29 Oct 2004 08:50:57 +0000 Subject: [PATCH] particle fix git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@388 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/r_part.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/engine/client/r_part.c b/engine/client/r_part.c index 69e1dacd6..8866d0ce4 100644 --- a/engine/client/r_part.c +++ b/engine/client/r_part.c @@ -1499,6 +1499,10 @@ int R_RunParticleEffectType (vec3_t org, vec3_t dir, float count, int typenum) if (!ptype->loaded) return 1; + // get msvc to shut up + j = k = l = 0; + m = 0; + while(ptype) { // init spawn specific variables @@ -1516,9 +1520,9 @@ int R_RunParticleEffectType (vec3_t org, vec3_t dir, float count, int typenum) m = (M_PI*2)/m; break; case SM_TELEBOX: - j = k = -ptype->areaspread; - case SM_LAVASPLASH: l = -ptype->areaspreadvert; + case SM_LAVASPLASH: + j = k = -ptype->areaspread; break; } @@ -1542,7 +1546,7 @@ int R_RunParticleEffectType (vec3_t org, vec3_t dir, float count, int typenum) b = bfirst = free_beams; free_beams = free_beams->next; } - b->texture_s = i; + b->texture_s = i; // TODO: FIX THIS NUMBER b->flags = 0; b->p = p; VectorClear(b->dir);