Skip to content

Commit

Permalink
engine: client: use physents array when tracing physents =/
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Dec 9, 2023
1 parent c6c86f9 commit 20ced85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/client/cl_tent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 20ced85

Please sign in to comment.