From 449fda0cc6e958d0569ad1f4cc287ab537fcf3a4 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sat, 26 Sep 2020 21:11:35 +0000 Subject: [PATCH] view: Use bob_limit again. Ignore the cvar with classic. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12948 d7cf8633-e32d-0410-b094-e92efae38249 --- view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view.c b/view.c index fe561ea8..4aba2954 100644 --- a/view.c +++ b/view.c @@ -711,7 +711,7 @@ void V_CalcRefdefUsing (const matrix4x4_t *entrendermatrix, const vec3_t clviewa // vertical view bobbing code if (cl_bob.value && cl_bobcycle.value) { - float bob_limit = cl_bob_limit.value; + float bob_limit = cl_bobmodel_classic.integer ? 4 : cl_bob_limit.value; if (cl_bob_limit_heightcheck.integer) { @@ -750,7 +750,7 @@ void V_CalcRefdefUsing (const matrix4x4_t *entrendermatrix, const vec3_t clviewa // (don't count Z, or jumping messes it up) bob = xyspeed * cl_bob.value; bob = bob*0.3 + bob*0.7*sin(cycle); - bob = bound(-7, bob, 4); + bob = bound(-7, bob, bob_limit); vieworg[2] += bob; -- 2.39.2