]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Better bounds
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:06:44 +0000 (18:06 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:06:44 +0000 (18:06 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

view.c

diff --git a/view.c b/view.c
index 4bc0e5f67cf0f472d40d5187911213875ae8748d..58eb31f37f17e32be0f0fac81ef27f6f36025ba5 100644 (file)
--- a/view.c
+++ b/view.c
@@ -660,12 +660,12 @@ void V_CalcRefdef (void)
                                                // (don't count Z, or jumping messes it up)
                                                bob = xyspeed * cl_bob.value;
                                                bob = bob*0.3 + bob*0.7*cycle;
-                                               vieworg[2] += bound(-8, bob, 5);
+                                               vieworg[2] += bound(-8, bob, 10);
                                                // we also need to adjust gunorg, or this appears like pushing the gun!
                                                // In the old code, this was applied to vieworg BEFORE copying to gunorg,
                                                // but this is not viable with the new followmodel code as that would mean
                                                // that followmodel would work on the munged-by-bob vieworg and do feedback
-                                               gunorg[2] += bound(-8, bob, 5);
+                                               gunorg[2] += bound(-8, bob, 10);
                                        }
 
                                        // horizontal bobbing code