From ccf707e6ac0c87b889065822691cde15b79da9de Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 12 Jul 2010 18:04:55 +0000 Subject: [PATCH] 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 --- view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.2