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:
TimeServ 2006-07-18 15:20:26 +00:00
parent fb72d8ca83
commit 730f6abe69
1 changed files with 8 additions and 1 deletions

View File

@ -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;
}
} }
} }