mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
fix player frame/frame lerp with MVD
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2360 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
fb72d8ca83
commit
730f6abe69
1 changed files with 8 additions and 1 deletions
|
@ -2661,7 +2661,7 @@ guess_pm_type:
|
||||||
if (cl.lerpplayers[num].frame != state->frame)
|
if (cl.lerpplayers[num].frame != state->frame)
|
||||||
{
|
{
|
||||||
cl.lerpplayers[num].oldframechange = cl.lerpplayers[num].framechange;
|
cl.lerpplayers[num].oldframechange = cl.lerpplayers[num].framechange;
|
||||||
cl.lerpplayers[num].framechange = cl.time;
|
cl.lerpplayers[num].framechange = cl.servertime;
|
||||||
cl.lerpplayers[num].frame = state->frame;
|
cl.lerpplayers[num].frame = state->frame;
|
||||||
|
|
||||||
//don't care about position interpolation.
|
//don't care about position interpolation.
|
||||||
|
@ -3575,6 +3575,13 @@ void MVD_Interpolate(void)
|
||||||
state->velocity[j] = oldstate->velocity[j] + f * (pplayer->oldv[j] - oldstate->velocity[j]);
|
state->velocity[j] = oldstate->velocity[j] + f * (pplayer->oldv[j] - oldstate->velocity[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cl.lerpplayers[i].frame != state->frame)
|
||||||
|
{
|
||||||
|
cl.lerpplayers[i].oldframechange = cl.lerpplayers[i].framechange;
|
||||||
|
cl.lerpplayers[i].framechange = demtime;
|
||||||
|
cl.lerpplayers[i].frame = state->frame;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue