mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-11 07:01:43 +00:00
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:
parent
cb66a2e005
commit
2acc7afa28
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue