Browse Source

ref: soft: remove GetPredictedOrigin() call

pull/2/head
Alibek Omarov 9 months ago
parent
commit
59ddfb787f
  1. 6
      ref/soft/r_beams.c
  2. 2
      ref/soft/r_studio.c

6
ref/soft/r_beams.c

@ -881,11 +881,7 @@ static qboolean R_BeamComputePoint( int beamEnt, vec3_t pt ) @@ -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;

2
ref/soft/r_studio.c

@ -3373,7 +3373,7 @@ void R_RunViewmodelEvents( void ) @@ -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;

Loading…
Cancel
Save