From b6dab6a5ee4093a77b7e08d45c8ea4eacc7f9dc4 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Sat, 10 Sep 2005 01:46:32 +0000 Subject: [PATCH] gl_part_flame fix git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1302 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/r_efrag.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/client/r_efrag.c b/engine/client/r_efrag.c index 577b7d7a..f826fcea 100644 --- a/engine/client/r_efrag.c +++ b/engine/client/r_efrag.c @@ -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