2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 09:56:22 +01:00

engine: client: no sense to check for position history pointers for NULL in CL_FindInterpolationUpdates, as they never are

This commit is contained in:
Alibek Omarov 2024-11-05 21:16:28 +03:00
parent f95ce7f52d
commit ad457f717b

View File

@ -392,8 +392,8 @@ static qboolean CL_FindInterpolationUpdates( cl_entity_t *ent, double targettime
} }
} }
if( ph0 != NULL ) *ph0 = &ent->ph[i0]; *ph0 = &ent->ph[i0];
if( ph1 != NULL ) *ph1 = &ent->ph[i1]; *ph1 = &ent->ph[i1];
return extrapolate; return extrapolate;
} }
@ -414,9 +414,6 @@ static void CL_PureOrigin( cl_entity_t *ent, double t, vec3_t outorigin, vec3_t
// NOTE: ph0 is next, ph1 is a prev // NOTE: ph0 is next, ph1 is a prev
CL_FindInterpolationUpdates( ent, t, &ph0, &ph1 ); CL_FindInterpolationUpdates( ent, t, &ph0, &ph1 );
if ( !ph0 || !ph1 )
return;
t0 = ph0->animtime; t0 = ph0->animtime;
t1 = ph1->animtime; t1 = ph1->animtime;
@ -490,9 +487,6 @@ static int CL_InterpolateModel( cl_entity_t *e )
t = cl.time - cl_interp.value; t = cl.time - cl_interp.value;
CL_FindInterpolationUpdates( e, t, &ph0, &ph1 ); CL_FindInterpolationUpdates( e, t, &ph0, &ph1 );
if( ph0 == NULL || ph1 == NULL )
return 0;
t1 = ph1->animtime; t1 = ph1->animtime;
t2 = ph0->animtime; t2 = ph0->animtime;
@ -833,7 +827,6 @@ int CL_ParsePacketEntities( sizebuf_t *msg, qboolean delta, connprotocol_t proto
frame_t *newframe, *oldframe; frame_t *newframe, *oldframe;
int oldindex, newnum, oldnum; int oldindex, newnum, oldnum;
int playerbytes = 0; int playerbytes = 0;
int oldpacket;
int bufStart; int bufStart;
entity_state_t *oldent; entity_state_t *oldent;
qboolean player; qboolean player;
@ -871,7 +864,6 @@ int CL_ParsePacketEntities( sizebuf_t *msg, qboolean delta, connprotocol_t proto
{ {
// this is a full update that we can start delta compressing from now // this is a full update that we can start delta compressing from now
oldframe = NULL; oldframe = NULL;
oldpacket = -1; // delta too old or is initial message
cls.demowaiting = false; // we can start recording now cls.demowaiting = false; // we can start recording now
} }