limit entity movement lerp to 10th of a second
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Sep 2002 02:38:38 +0000 (02:38 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Sep 2002 02:38:38 +0000 (02:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2444 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index 06fa7d1..1f95068 100644 (file)
@@ -510,7 +510,7 @@ void CL_MoveLerpEntityStates(entity_t *ent)
        else// if (ent->state_current.flags & RENDER_STEP)
        {
                // monster interpolation
-               if (DotProduct(odelta, odelta) + DotProduct(adelta, adelta) > 0.01)
+               if (DotProduct(odelta, odelta) + DotProduct(adelta, adelta) > 0.01 || cl.mtime[0] - ent->persistent.lerpstarttime >= 0.1)
                {
                        ent->persistent.lerpdeltatime = cl.time - ent->persistent.lerpstarttime;
                        ent->persistent.lerpstarttime = cl.mtime[1];