From 59ddfb787f5fc4678e0ff1f8066dfaa4d9e0496d Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 28 Dec 2023 22:19:45 +0300 Subject: [PATCH] ref: soft: remove GetPredictedOrigin() call --- ref/soft/r_beams.c | 6 +----- ref/soft/r_studio.c | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ref/soft/r_beams.c b/ref/soft/r_beams.c index b9517520..9a1e69a6 100644 --- a/ref/soft/r_beams.c +++ b/ref/soft/r_beams.c @@ -881,11 +881,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; diff --git a/ref/soft/r_studio.c b/ref/soft/r_studio.c index 6ca2b707..7b70c663 100644 --- a/ref/soft/r_studio.c +++ b/ref/soft/r_studio.c @@ -3373,7 +3373,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;