]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_parse.c
limit entity movement lerp to 10th of a second
[xonotic/darkplaces.git] / cl_parse.c
index 06fa7d134c59d395182ef28ab18ccf76ffbca068..1f9506898b5fe2c94e942569871815a7e92af850 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];