From: divverent Date: Mon, 12 Jul 2010 18:08:00 +0000 (+0000) Subject: Center the effect, as this isn't the vertical bobbing X-Git-Tag: xonotic-v0.1.0preview~357 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7af8c3a5a3b384d53c82eea289cf030b33e23a63;p=xonotic%2Fdarkplaces.git 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 ::stable-branch::merge=250091926db46a676ea0574165d9690b69227836 --- 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