From 465e812ed94785007d95bd66dde80c658a63901b Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 21 Jul 2024 04:33:31 +0300 Subject: [PATCH] engine: client: fix EF_DIMLIGHT under quake compatibility mode --- engine/client/cl_tent.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_tent.c b/engine/client/cl_tent.c index 83216fb1..86e95ad6 100644 --- a/engine/client/cl_tent.c +++ b/engine/client/cl_tent.c @@ -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 {