]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Use += instead. You never know what else might change the view roll someday :)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:04:14 +0000 (18:04 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:04:14 +0000 (18:04 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

view.c

diff --git a/view.c b/view.c
index 55a8a0c068fecc53e77164839940a6c6eb188d24..1e8568711915c170799c8a63ddaaa619fa31668d 100644 (file)
--- a/view.c
+++ b/view.c
@@ -689,7 +689,7 @@ void V_CalcRefdef (void)
 
                                                cycle2 *= cl_bobroll.value * cl.bobroll_airtime;
                                                bobroll = bound(0, xyspeed, sv_maxspeed.value) * cycle2;
-                                               viewangles[2] = bound(-45, bobroll, 45);
+                                               viewangles[2] += bound(-45, bobroll, 45);
                                        }
 
                                        // gun model bobbing code