Browse Source

engine: client: enable interpolation of local player angles

pull/2/head
SNMetamorph 2 years ago committed by Alibek Omarov
parent
commit
e9ae6d08b5
  1. 5
      engine/client/cl_frame.c

5
engine/client/cl_frame.c

@ -534,7 +534,7 @@ void CL_ComputePlayerOrigin( cl_entity_t *ent ) @@ -534,7 +534,7 @@ void CL_ComputePlayerOrigin( cl_entity_t *ent )
vec3_t origin;
vec3_t angles;
if( !ent->player || ent->index == ( cl.playernum + 1 ))
if( !ent->player )
return;
if( cl_nointerp->value > 0.f )
@ -1094,6 +1094,9 @@ void CL_LinkPlayers( frame_t *frame ) @@ -1094,6 +1094,9 @@ void CL_LinkPlayers( frame_t *frame )
if ( i == cl.playernum )
{
// using interpolation only for local player angles
CL_ComputePlayerOrigin( ent );
if( cls.demoplayback == DEMO_QUAKE1 )
VectorLerp( ent->prevstate.origin, cl.lerpFrac, ent->curstate.origin, cl.simorg );
VectorCopy( cl.simorg, ent->origin );

Loading…
Cancel
Save