mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 05:41:52 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue