From 3516e4c3b0ba6e30c96fa16c77cf1efe36458388 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 2 Jan 2021 13:16:07 +1100 Subject: [PATCH] - Blood: Don't use `cl_viewbob` to control bobbing overall, only `cl_viewhbob` and `cl_viewvbob` as exposed via the menus. --- source/blood/src/view.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/source/blood/src/view.cpp b/source/blood/src/view.cpp index 701144193..894fc01b5 100644 --- a/source/blood/src/view.cpp +++ b/source/blood/src/view.cpp @@ -617,17 +617,14 @@ void viewDrawScreen(bool sceneonly) cH += buildhoriz(mulscale30(0x40000000 - Cos(gView->tiltEffect << 2), 30)); if (gViewPos == 0) { - if (cl_viewbob) + if (cl_viewhbob) { - if (cl_viewhbob) - { - cX -= mulscale30(v74, Sin(cA.asbuild())) >> 4; - cY += mulscale30(v74, Cos(cA.asbuild())) >> 4; - } - if (cl_viewvbob) - { - cZ += v8c; - } + cX -= mulscale30(v74, Sin(cA.asbuild())) >> 4; + cY += mulscale30(v74, Cos(cA.asbuild())) >> 4; + } + if (cl_viewvbob) + { + cZ += v8c; } if (cl_slopetilting) {