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,7 +2737,12 @@ void CL_AddEntityEffects( cl_entity_t *ent )
|
||||||
if( FBitSet( ent->curstate.effects, EF_BRIGHTLIGHT ))
|
if( FBitSet( ent->curstate.effects, EF_BRIGHTLIGHT ))
|
||||||
R_EntityBrightlight( ent, ent->index /* 1 in GoldSrc */, 400 );
|
R_EntityBrightlight( ent, ent->index /* 1 in GoldSrc */, 400 );
|
||||||
else if( FBitSet( ent->curstate.effects, EF_DIMLIGHT ))
|
else if( FBitSet( ent->curstate.effects, EF_DIMLIGHT ))
|
||||||
CL_UpdateFlashlight( ent );
|
{
|
||||||
|
if( Host_IsQuakeCompatible( ))
|
||||||
|
R_EntityDimlight( ent, ent->index );
|
||||||
|
else
|
||||||
|
CL_UpdateFlashlight( ent );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue