]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Use the proper frametime calculation for model animations, this way they work in...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 14 Feb 2011 13:51:19 +0000 (13:51 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 14 Feb 2011 13:51:19 +0000 (13:51 +0000)
From: Samual <samual@xonotic.org>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10843 d7cf8633-e32d-0410-b094-e92efae38249

view.c

diff --git a/view.c b/view.c
index 91c17ea164f31c327495707c39b84c5734d8956e..6be70a6d086108035e12c00709f3c706c8fc9af8 100644 (file)
--- a/view.c
+++ b/view.c
@@ -603,8 +603,9 @@ void V_CalcRefdef (void)
                                        float cycle;
                                        vec_t frametime;
 
-                                       frametime = cl.realframetime * cl.movevars_timescale;
-
+                                       //frametime = cl.realframetime * cl.movevars_timescale;
+                                       frametime = (cl.time - cl.oldtime) * cl.movevars_timescale;
+                                       
                                        // 1. if we teleported, clear the frametime... the lowpass will recover the previous value then
                                        if(!ent->persistent.trail_allowed) // FIXME improve this check
                                        {