From: divverent Date: Mon, 12 Jul 2010 18:04:55 +0000 (+0000) Subject: Suspend the effect when the jump button is pressed. Fixes the bunny-hopping twitches. X-Git-Tag: xonotic-v0.1.0preview~373 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=30cabc7b1df5bbc5b5b3d91639d609230aac713a;p=xonotic%2Fdarkplaces.git Suspend the effect when the jump button is pressed. Fixes the bunny-hopping twitches. From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10289 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=ccf707e6ac0c87b889065822691cde15b79da9de --- diff --git a/view.c b/view.c index 3fb5ed65..7e6223de 100644 --- a/view.c +++ b/view.c @@ -677,7 +677,7 @@ void V_CalcRefdef (void) // 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 - if (cl.onground) + if (cl.onground && !cl.cmd.jump) // also block the effect while the jump button is pressed, to avoid twitches when bunny-hopping cl.bobroll_airtime = 1; else {