From e59ea9b87fc57f6edca2a519d9f6dd42c6f40d03 Mon Sep 17 00:00:00 2001 From: pierow Date: Sun, 14 Jan 2024 17:36:59 -0500 Subject: [PATCH] readd line deleted in error --- main/source/cl_dll/view.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/source/cl_dll/view.cpp b/main/source/cl_dll/view.cpp index d0bd838b..1f01f3a1 100644 --- a/main/source/cl_dll/view.cpp +++ b/main/source/cl_dll/view.cpp @@ -625,8 +625,9 @@ void V_CalcNormalRefdef ( struct ref_params_s *pparams ) if (cl_bobview && cl_bobview->value != 0) { - pparams->vieworg[2] += ( bob ); + pparams->vieworg[2] += ( bob ); } + VectorAdd(pparams->vieworg, pparams->viewheight, pparams->vieworg); VectorCopy ( pparams->cl_viewangles, pparams->viewangles ); @@ -760,7 +761,7 @@ void V_CalcNormalRefdef ( struct ref_params_s *pparams ) } if (cl_bobview && cl_bobview->value != 0) { - view->origin[2] += bob; + view->origin[2] += bob; } // throw in a little tilt.