]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix slowmo speed
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:07:13 +0000 (14:07 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:07:13 +0000 (14:07 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

view.c

diff --git a/view.c b/view.c
index ead18fc6b7c927a568f6425a980ea689992c3161..c0dab730c09ba84aaf28005d33264243929e3168 100644 (file)
--- a/view.c
+++ b/view.c
@@ -533,7 +533,7 @@ void V_CalcRefdef (void)
                                {
                                        double xyspeed, bob;
                                        vec_t d;
-                                       vec_t ef_speed = cl.realframetime;
+                                       vec_t ef_speed = cl.realframetime * cl.movevars_timescale;
 
                                        // gun model leaning code
                                        if(cl_leanmodel_up.value && cl_leanmodel_up_speed.value * ef_speed < 1) // bad things happen if this goes over 1, so prevent the effect