mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-28 19:55:09 +01:00
engine: client: fix EF_DIMLIGHT under quake compatibility mode
This commit is contained in:
parent
3b1fb79a85
commit
465e812ed9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user