Browse Source

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
pull/2/head
Alibek Omarov 3 years ago
parent
commit
2c1b862654
  1. 2
      engine/client/cl_tent.c

2
engine/client/cl_tent.c

@ -2693,7 +2693,7 @@ apply various effects to entity origin or attachment @@ -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 ))

Loading…
Cancel
Save