fix for frame interpolation

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2028 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2006-02-26 06:21:55 +00:00
parent af15441da3
commit 27bb33eb41

View file

@ -1597,7 +1597,9 @@ void CL_LinkPacketEntities (void)
ent->lerpfrac = 0;
else
{
ent->lerpfrac = 1-(servertime - le->oldframechange) / (le->framechange - le->oldframechange);
ent->lerpfrac = 1-(servertime - le->framechange) / (le->framechange - le->oldframechange);
if (ent->lerpfrac < 0)
ent->lerpfrac = 0;
}