engine: client: fix EF_DIMLIGHT under quake compatibility mode

This commit is contained in:
Alibek Omarov 2024-07-21 04:33:31 +03:00
parent 3b1fb79a85
commit 465e812ed9

View file

@ -2737,8 +2737,13 @@ void CL_AddEntityEffects( cl_entity_t *ent )
if( FBitSet( ent->curstate.effects, EF_BRIGHTLIGHT ))
R_EntityBrightlight( ent, ent->index /* 1 in GoldSrc */, 400 );
else if( FBitSet( ent->curstate.effects, EF_DIMLIGHT ))
{
if( Host_IsQuakeCompatible( ))
R_EntityDimlight( ent, ent->index );
else
CL_UpdateFlashlight( ent );
}
}
else
{
// from CL_LinkPacketEntities