]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Better bounds for the view rolling, and fix a comment
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:07:10 +0000 (18:07 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:07:10 +0000 (18:07 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

view.c

diff --git a/view.c b/view.c
index 58eb31f37f17e32be0f0fac81ef27f6f36025ba5..5d558aaccecd1454ad4b1d5bb0015f79f653098d 100644 (file)
--- a/view.c
+++ b/view.c
@@ -668,7 +668,7 @@ void V_CalcRefdef (void)
                                                gunorg[2] += bound(-8, bob, 10);
                                        }
 
-                                       // horizontal bobbing code
+                                       // horizontal view bobbing code
                                        if (cl_bobside.value && cl_bobsidecycle.value)
                                        {
                                                vec3_t bobvel;
@@ -744,7 +744,7 @@ void V_CalcRefdef (void)
 
                                                cycle2 *= cl_bobroll.value * cl.bobroll_airtime;
                                                bobroll = bound(0, xyspeed, sv_maxspeed.value) * cycle2;
-                                               viewangles[2] += bound(-45, bobroll, 45);
+                                               viewangles[2] += bound(-15, bobroll, 15);
                                        }
 
                                        // gun model bobbing code