From 20ced857b42ff568571283f5756205cc800e54c5 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 9 Dec 2023 16:45:03 +0300 Subject: [PATCH] engine: client: use physents array when tracing physents =/ --- engine/client/cl_tent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/cl_tent.c b/engine/client/cl_tent.c index 9f2a7e49..932f62e8 100644 --- a/engine/client/cl_tent.c +++ b/engine/client/cl_tent.c @@ -2665,7 +2665,7 @@ void CL_UpdateFlashlight( cl_entity_t *ent ) // update flashlight endpos dl = CL_AllocDlight( ent->index ); #if 1 - hit = CL_GetEntityByIndex( clgame.pmove->visents[trace.ent].info ); + hit = CL_GetEntityByIndex( clgame.pmove->physents[trace.ent].info ); if( hit && hit->model && ( hit->model->type == mod_alias || hit->model->type == mod_studio )) VectorCopy( hit->origin, dl->origin ); else VectorCopy( trace.endpos, dl->origin );