1
0
Fork 0
forked from fte/fteqw

Fixed particleeffectnum failing from looking up already existing particle effect

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5096 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Eukara 2017-05-03 22:51:25 +00:00
parent 85da162f49
commit f6cbd61760

View file

@ -2966,7 +2966,7 @@ static void QCBUILTIN PF_cs_particleeffectnum (pubprogfuncs_t *prinst, struct gl
{
//effects can be in the list despite now being stale. they still take up a slot to avoid reuse as the qc can potentially still potentially reference it.
//csqc needs to be able to detect a now-stale effect
if (cl.particle_csprecache[i] != P_INVALID)
//if (cl.particle_csprecache[i] != P_INVALID)
G_FLOAT(OFS_RETURN) = -i;
return;
}