From 2c1b862654a92b7c6b2c98cf4be67a0c46461818 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 14 Jan 2022 16:16:13 +0300 Subject: [PATCH] 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 --- engine/client/cl_tent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/cl_tent.c b/engine/client/cl_tent.c index 89d74aa5..dab743d6 100644 --- a/engine/client/cl_tent.c +++ b/engine/client/cl_tent.c @@ -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 ))