From 355860f662546e180f6d6d49a842d71ab7e9df90 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 30 Sep 2022 19:57:39 +1000 Subject: [PATCH] - Blood: Slightly cleaner view bobbing math. --- source/games/blood/src/view.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/games/blood/src/view.cpp b/source/games/blood/src/view.cpp index 295effc69..891ed1b46 100644 --- a/source/games/blood/src/view.cpp +++ b/source/games/blood/src/view.cpp @@ -520,8 +520,7 @@ static void SetupView(PLAYER* pPlayer, DVector3& cPos, DAngle& cA, DAngle& cH, s { if (cl_viewhbob) { - cPos.X -= bobWidth * cA.Sin(); - cPos.Y += bobWidth * cA.Cos(); + cPos.XY() -= cA.ToVector().Rotated90CW() * bobWidth; } if (cl_viewvbob) {