2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-28 03:35:19 +01:00

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,7 +2737,12 @@ 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 ))
CL_UpdateFlashlight( ent );
{
if( Host_IsQuakeCompatible( ))
R_EntityDimlight( ent, ent->index );
else
CL_UpdateFlashlight( ent );
}
}
else
{