From 962f8548215542e25bff899fa6fab5ca3f9827ba Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 26 Sep 2002 02:38:38 +0000 Subject: [PATCH] limit entity movement lerp to 10th of a second git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2444 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_parse.c b/cl_parse.c index 06fa7d13..1f950689 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -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]; -- 2.39.2