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:
TimeServ 2005-09-10 01:46:32 +00:00
parent 3d3199eeda
commit b6dab6a5ee
1 changed files with 3 additions and 1 deletions

View File

@ -257,6 +257,8 @@ void R_StoreEfrags (efrag_t **ppefrag)
model_t *clmodel;
efrag_t *pefrag;
extern cvar_t gl_part_flame;
while ((pefrag = *ppefrag) != NULL)
{
pent = pefrag->entity;
@ -279,7 +281,7 @@ void R_StoreEfrags (efrag_t **ppefrag)
pent->visframe = r_framecount;
// 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
// pointer math to get an index to use in cl_static emit