engine: client: fix EF_DIMLIGHT under quake compatibility mode
This commit is contained in:
parent
3b1fb79a85
commit
465e812ed9
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue