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:
parent
3a85de45f6
commit
3ff8d04cfc
1 changed files with 3 additions and 0 deletions
|
@ -3510,7 +3510,10 @@ static void CL_TransitionPacketEntities(int newsequence, packet_entities_t *newp
|
||||||
lfrac = (servertime - le->orglerpstarttime) / le->orglerpdeltatime;
|
lfrac = (servertime - le->orglerpstarttime) / le->orglerpdeltatime;
|
||||||
lfrac = bound(0, lfrac, 1);
|
lfrac = bound(0, lfrac, 1);
|
||||||
if (r_nolerp.ival)
|
if (r_nolerp.ival)
|
||||||
|
{
|
||||||
lfrac = 1;
|
lfrac = 1;
|
||||||
|
isnew = true;
|
||||||
|
}
|
||||||
for (i = 0; i < 3; i++)
|
for (i = 0; i < 3; i++)
|
||||||
{
|
{
|
||||||
le->origin[i] = le->oldorigin[i] + lfrac*(le->neworigin[i] - le->oldorigin[i]);
|
le->origin[i] = le->oldorigin[i] + lfrac*(le->neworigin[i] - le->oldorigin[i]);
|
||||||
|
|
Loading…
Reference in a new issue