engine: client: use physents array when tracing physents =/
This commit is contained in:
parent
c6c86f9665
commit
20ced857b4
1 changed files with 1 additions and 1 deletions
|
@ -2665,7 +2665,7 @@ void CL_UpdateFlashlight( cl_entity_t *ent )
|
||||||
// update flashlight endpos
|
// update flashlight endpos
|
||||||
dl = CL_AllocDlight( ent->index );
|
dl = CL_AllocDlight( ent->index );
|
||||||
#if 1
|
#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 ))
|
if( hit && hit->model && ( hit->model->type == mod_alias || hit->model->type == mod_studio ))
|
||||||
VectorCopy( hit->origin, dl->origin );
|
VectorCopy( hit->origin, dl->origin );
|
||||||
else VectorCopy( trace.endpos, dl->origin );
|
else VectorCopy( trace.endpos, dl->origin );
|
||||||
|
|
Loading…
Add table
Reference in a new issue