mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 15:47:55 +00:00
engine: client: correctly support ENGINE_COMPUTE_STUDIO_LERP feature flag without STUDIO_INTERPOLATION_FIX enabled
This commit is contained in:
parent
8e54e18c8f
commit
1ae01d89de
@ -1238,14 +1238,24 @@ void CL_LinkPacketEntities( frame_t *frame )
|
|||||||
VectorCopy( ent->curstate.origin, ent->latched.prevorigin );
|
VectorCopy( ent->curstate.origin, ent->latched.prevorigin );
|
||||||
VectorCopy( ent->curstate.angles, ent->latched.prevangles );
|
VectorCopy( ent->curstate.angles, ent->latched.prevangles );
|
||||||
|
|
||||||
|
if( !FBitSet( host.features, ENGINE_COMPUTE_STUDIO_LERP ))
|
||||||
|
{
|
||||||
// disable step interpolation in client.dll
|
// disable step interpolation in client.dll
|
||||||
ent->curstate.movetype = MOVETYPE_NONE;
|
ent->curstate.movetype = MOVETYPE_NONE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if( FBitSet( host.features, ENGINE_COMPUTE_STUDIO_LERP ))
|
||||||
|
{
|
||||||
|
interpolate = true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// restore step interpolation in client.dll
|
// restore step interpolation in client.dll
|
||||||
ent->curstate.movetype = MOVETYPE_STEP;
|
ent->curstate.movetype = MOVETYPE_STEP;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user