From dbdcdb934ffaea023b2628b7e41930c2a53afae5 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 30 Sep 2022 15:20:56 +1000 Subject: [PATCH] - Blood: Clamp tangent applied as Z offset in view. * Value of `1.171875` == 150 (value between 180/120 - old min/max) / 128 (Build to pure Tan). --- source/games/blood/src/view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/blood/src/view.cpp b/source/games/blood/src/view.cpp index 551a6f4b6..4a83c2f69 100644 --- a/source/games/blood/src/view.cpp +++ b/source/games/blood/src/view.cpp @@ -525,7 +525,7 @@ static void SetupView(PLAYER* pPlayer, DVector3& cPos, DAngle& cA, DAngle& cH, s { cPos.Z += bobHeight; } - cPos.Z += cH.Tan() * 5.; + cPos.Z += clamp(cH.Tan(), -1.171875, 1.171875) * 5.; } else {