From 961d03b211c568fab07a72b494aac3e9dbc6e842 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 16 Jul 2010 22:25:12 +0000 Subject: [PATCH] Bounds From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10345 d7cf8633-e32d-0410-b094-e92efae38249 --- view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view.c b/view.c index 70011bfa..0848d002 100644 --- a/view.c +++ b/view.c @@ -721,13 +721,13 @@ void V_CalcRefdef (void) { if (!cl.onground) { - cl.bobfall_speed = cl.velocity[2] * cl_bobfall.value; + cl.bobfall_speed = bound(-400, cl.velocity[2], 0) * bound(0, cl_bobfall.value, 0.1); cl.bobfall_swing = 1; } else { if(cl.bobfall_swing > 0) - cl.bobfall_swing -= cl_bobfallcycle.value; + cl.bobfall_swing -= bound(0, cl_bobfallcycle.value, 1); else cl.bobfall_swing = 0; -- 2.39.2