fix r_nolerp stutter bug.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5195 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2018-01-05 16:14:33 +00:00
parent 3a85de45f6
commit 3ff8d04cfc

View file

@ -3510,7 +3510,10 @@ static void CL_TransitionPacketEntities(int newsequence, packet_entities_t *newp
lfrac = (servertime - le->orglerpstarttime) / le->orglerpdeltatime;
lfrac = bound(0, lfrac, 1);
if (r_nolerp.ival)
{
lfrac = 1;
isnew = true;
}
for (i = 0; i < 3; i++)
{
le->origin[i] = le->oldorigin[i] + lfrac*(le->neworigin[i] - le->oldorigin[i]);