gl_part_flame fix
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1302 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
3d3199eeda
commit
b6dab6a5ee
|
@ -257,6 +257,8 @@ void R_StoreEfrags (efrag_t **ppefrag)
|
||||||
model_t *clmodel;
|
model_t *clmodel;
|
||||||
efrag_t *pefrag;
|
efrag_t *pefrag;
|
||||||
|
|
||||||
|
extern cvar_t gl_part_flame;
|
||||||
|
|
||||||
while ((pefrag = *ppefrag) != NULL)
|
while ((pefrag = *ppefrag) != NULL)
|
||||||
{
|
{
|
||||||
pent = pefrag->entity;
|
pent = pefrag->entity;
|
||||||
|
@ -279,7 +281,7 @@ void R_StoreEfrags (efrag_t **ppefrag)
|
||||||
pent->visframe = r_framecount;
|
pent->visframe = r_framecount;
|
||||||
|
|
||||||
// emit particles for statics (we don't need to cheat check statics)
|
// emit particles for statics (we don't need to cheat check statics)
|
||||||
if (clmodel->particleeffect >= 0)
|
if (clmodel->particleeffect >= 0 && gl_part_flame.value)
|
||||||
{
|
{
|
||||||
// TODO: this is ugly.. assumes ent is in static entities, and subtracts
|
// TODO: this is ugly.. assumes ent is in static entities, and subtracts
|
||||||
// pointer math to get an index to use in cl_static emit
|
// pointer math to get an index to use in cl_static emit
|
||||||
|
|
Loading…
Reference in New Issue