mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 12:22:42 +00:00
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:
parent
af15441da3
commit
27bb33eb41
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue