ref: gl: remove GetPredictedOrigin call

This commit is contained in:
Alibek Omarov 2023-12-28 22:19:38 +03:00
parent 6c16de55c0
commit 8084687e50
2 changed files with 2 additions and 6 deletions

View File

@ -868,11 +868,7 @@ static qboolean R_BeamComputePoint( int beamEnt, vec3_t pt )
if( attach > 0 )
VectorCopy( ent->attachment[attach - 1], pt );
else if( ent->index == ( gp_cl->playernum + 1 ))
{
vec3_t simorg;
gEngfuncs.GetPredictedOrigin( simorg );
VectorCopy( simorg, pt );
}
VectorCopy( gp_cl->simorg, pt );
else VectorCopy( ent->origin, pt );
return true;

View File

@ -3607,7 +3607,7 @@ void R_RunViewmodelEvents( void )
R_StudioSetupTimings();
gEngfuncs.GetPredictedOrigin( simorg );
VectorCopy( gp_cl->simorg, simorg );
for( i = 0; i < 4; i++ )
VectorCopy( simorg, RI.currententity->attachment[i] );
RI.currentmodel = RI.currententity->model;