From 82826c7fee602b9d76a09446390364911e1e8347 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 12 Jul 2010 18:07:10 +0000 Subject: [PATCH] Better bounds for the view rolling, and fix a comment From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10301 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=853bfbcdcc848fcb54d465a52a61e8adf9ec3635 --- view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view.c b/view.c index 58eb31f3..5d558aac 100644 --- a/view.c +++ b/view.c @@ -668,7 +668,7 @@ void V_CalcRefdef (void) gunorg[2] += bound(-8, bob, 10); } - // horizontal bobbing code + // horizontal view bobbing code if (cl_bobside.value && cl_bobsidecycle.value) { vec3_t bobvel; @@ -744,7 +744,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(-15, bobroll, 15); } // gun model bobbing code -- 2.39.2