]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Center the effect, as this isn't the vertical bobbing
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:08:00 +0000 (18:08 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:08:00 +0000 (18:08 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

view.c

diff --git a/view.c b/view.c
index 732c02ac998880dfc3443e31aa3955efa636f715..9541319aab696169ee927360c97b1a41ef5455a7 100644 (file)
--- a/view.c
+++ b/view.c
@@ -680,8 +680,7 @@ void V_CalcRefdef (void)
                                                        cycle = sin(M_PI + M_PI * (cycle-cl_bob2up.value)/(1.0 - cl_bob2up.value));
                                                // bob is proportional to velocity in the xy plane
                                                // (don't count Z, or jumping messes it up)
-                                               bob = xyspeed * cl_bob2.value;
-                                               bob = bob*0.3 + bob*0.7*cycle;
+                                               bob = xyspeed * cl_bob2.value * cycle;
 
                                                // this value slowly decreases from 1 to 0 when we stop touching the ground.
                                                // The cycle is later multiplied with it so the view smooths back to normal