]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Cap speed to sv_maxspeed, so this looks right when bunny-hopping (makes more sense...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:03:42 +0000 (18:03 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:03:42 +0000 (18:03 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

view.c

diff --git a/view.c b/view.c
index 2c330c616ab905f21194e52126f3fa77d3ab7ae2..4f781bb1da20913d15ac991add3f130ceaa9c626 100644 (file)
--- a/view.c
+++ b/view.c
@@ -690,7 +690,7 @@ void V_CalcRefdef (void)
                                                }
 
                                                cycle2 *= cl_bobrollup.value * cl.bobroll_airtime;
-                                               bobroll = xyspeed * cycle2;
+                                               bobroll = bound(0, xyspeed, sv_maxspeed.value) * cycle2;
                                                viewangles[2] = bound(-45, bobroll, 45);
                                        }