]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Half fix TODO 2 with a simple check. The view doesn't roll when not touching the...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:02:28 +0000 (18:02 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:02:28 +0000 (18:02 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

view.c

diff --git a/view.c b/view.c
index e54205748ae2c86f19ec62b30fd824d4d315ccfd..fc20b6ebb6a9ebc77e9bf14d6c3bfb7b830ad523 100644 (file)
--- a/view.c
+++ b/view.c
@@ -667,9 +667,10 @@ void V_CalcRefdef (void)
 
                                        // view rolling code
                                        // TODO 1: Make it work around the center rather than the left side
-                                       // TODO 2: Don't bob roll when not touching the ground
-                                       // TODO 3: Write cvars in darkplaces.txt, set better defaults and possibly disable by default once the first TODOs are ready.
+                                       // TODO 2: Make the roll smoothly return to 0 when you stop touching the ground, rather than instantly
+                                       // TODO 3: Write cvars to darkplaces.txt, set better defaults and possibly disable by default once the first TODOs are ready
                                        if (cl_bobroll.value && cl_bobrollcycle.value)
+                                       if (cl.onground)
                                        {
                                                cycle = cl.time / cl_bobrollcycle.value;
                                                cycle -= (int) cycle;