From: divverent Date: Mon, 12 Jul 2010 18:04:14 +0000 (+0000) Subject: Use += instead. You never know what else might change the view roll someday :) X-Git-Tag: xonotic-v0.1.0preview~376 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4f35edfcaabc19c616e720899cda9a4357d5b9db;p=xonotic%2Fdarkplaces.git Use += instead. You never know what else might change the view roll someday :) From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10286 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=b1e3d16661ca0d3963d048b72ac7f7b0a24bf7af --- diff --git a/view.c b/view.c index 55a8a0c0..1e856871 100644 --- 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