particle fix

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@388 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2004-10-29 08:50:57 +00:00
parent cb66a2e005
commit 2acc7afa28
1 changed files with 7 additions and 3 deletions

View File

@ -1499,6 +1499,10 @@ int R_RunParticleEffectType (vec3_t org, vec3_t dir, float count, int typenum)
if (!ptype->loaded) if (!ptype->loaded)
return 1; return 1;
// get msvc to shut up
j = k = l = 0;
m = 0;
while(ptype) while(ptype)
{ {
// init spawn specific variables // 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; m = (M_PI*2)/m;
break; break;
case SM_TELEBOX: case SM_TELEBOX:
j = k = -ptype->areaspread;
case SM_LAVASPLASH:
l = -ptype->areaspreadvert; l = -ptype->areaspreadvert;
case SM_LAVASPLASH:
j = k = -ptype->areaspread;
break; break;
} }
@ -1542,7 +1546,7 @@ int R_RunParticleEffectType (vec3_t org, vec3_t dir, float count, int typenum)
b = bfirst = free_beams; b = bfirst = free_beams;
free_beams = free_beams->next; free_beams = free_beams->next;
} }
b->texture_s = i; b->texture_s = i; // TODO: FIX THIS NUMBER
b->flags = 0; b->flags = 0;
b->p = p; b->p = p;
VectorClear(b->dir); VectorClear(b->dir);