]> de.git.xonotic.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)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 13 Jul 2010 20:52:51 +0000 (22:52 +0200)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10286 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b1e3d16661ca0d3963d048b72ac7f7b0a24bf7af

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