From 15decfdc182b3badc11ac137d69c7f9e4d2cee7c Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 12 Jul 2010 18:03:42 +0000 Subject: [PATCH] Cap speed to sv_maxspeed, so this looks right when bunny-hopping (makes more sense too) From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10283 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=b45e6c0be4b24d4dd5b5e127c08b0c9653051ca6 --- view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view.c b/view.c index 2c330c61..4f781bb1 100644 --- a/view.c +++ b/view.c @@ -690,7 +690,7 @@ void V_CalcRefdef (void) } cycle2 *= cl_bobrollup.value * cl.bobroll_airtime; - bobroll = xyspeed * cycle2; + bobroll = bound(0, xyspeed, sv_maxspeed.value) * cycle2; viewangles[2] = bound(-45, bobroll, 45); } -- 2.39.2