From 250091926db46a676ea0574165d9690b69227836 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 12 Jul 2010 18:08:00 +0000 Subject: [PATCH] Center the effect, as this isn't the vertical bobbing From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10305 d7cf8633-e32d-0410-b094-e92efae38249 --- view.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/view.c b/view.c index 732c02ac..9541319a 100644 --- 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 -- 2.39.2