engine: client: ignore EF_BRIGHTFIELD for local client

It must be OK, because GoldSrc don't call similar function for local client
instead adds only flashlight and muzzleflash effects.

By adding this check, behavior must be close enough
This commit is contained in:
Alibek Omarov 2022-01-14 16:16:13 +03:00
parent ea5937bce0
commit 2c1b862654
1 changed files with 1 additions and 1 deletions

View File

@ -2693,7 +2693,7 @@ apply various effects to entity origin or attachment
void CL_AddEntityEffects( cl_entity_t *ent )
{
// yellow flies effect 'monster stuck in the wall'
if( FBitSet( ent->curstate.effects, EF_BRIGHTFIELD ))
if( FBitSet( ent->curstate.effects, EF_BRIGHTFIELD ) && !RP_LOCALCLIENT( ent ))
R_EntityParticles( ent );
if( FBitSet( ent->curstate.effects, EF_DIMLIGHT ))