From 1cb3a930f2d8470810f43a9543490e726afaf95e Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 13 Nov 2023 20:44:47 +1100 Subject: [PATCH] - Fix pitch clamping for `GameInput::getInput()`. --- source/core/gameinput.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/gameinput.h b/source/core/gameinput.h index 271a176d0..63dc3e804 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -27,7 +27,7 @@ class GameInput static constexpr double YAW_TURNSPEEDS[3] = { 234.375 * (360. / 2048.), 890.625 * (360. / 2048.), 1548.75 * (360. / 2048.) }; static constexpr DVector3 MAXVEL[3] = { { 0., 0., 1. }, { 1., 1., 1. }, { 2., 2., 1. } }; - static constexpr DRotator MAXANG = { DAngle180 - minAngle, DAngle180 - minAngle, DAngle180 - minAngle }; + static constexpr DRotator MAXANG = { DAngle90 - minAngle, DAngle180 - minAngle, DAngle180 - minAngle }; static constexpr DAngle MOUSE_SCALE = DAngle::fromDeg(1. / 16.); // Input received from the OS.