From: divverent Date: Mon, 12 Jul 2010 18:06:44 +0000 (+0000) Subject: Better bounds X-Git-Tag: xonotic-v0.1.0preview~362 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0cc3cd376f2208671bc5fa84e78691d65a232c2c;p=xonotic%2Fdarkplaces.git Better bounds From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10300 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=6df7f6ce7ad0accee0797b4de36ebfa5596512a8 --- diff --git a/view.c b/view.c index 4bc0e5f6..58eb31f3 100644 --- a/view.c +++ b/view.c @@ -660,12 +660,12 @@ void V_CalcRefdef (void) // (don't count Z, or jumping messes it up) bob = xyspeed * cl_bob.value; bob = bob*0.3 + bob*0.7*cycle; - vieworg[2] += bound(-8, bob, 5); + vieworg[2] += bound(-8, bob, 10); // we also need to adjust gunorg, or this appears like pushing the gun! // In the old code, this was applied to vieworg BEFORE copying to gunorg, // but this is not viable with the new followmodel code as that would mean // that followmodel would work on the munged-by-bob vieworg and do feedback - gunorg[2] += bound(-8, bob, 5); + gunorg[2] += bound(-8, bob, 10); } // horizontal bobbing code