]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Suspend the effect when the jump button is pressed. Fixes the bunny-hopping twitches.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:04:55 +0000 (18:04 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:04:55 +0000 (18:04 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

view.c

diff --git a/view.c b/view.c
index 3fb5ed652c0cd244faae7991deec5e098212d8eb..7e6223de28a2ff07ca808b92665837c7c6ac1947 100644 (file)
--- 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
                                                {