From 42a35cec83a5b3b1e6d6ab1845cce9c175c07359 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 23 Feb 2025 16:18:27 +0100 Subject: [PATCH] Allow looking straight up or down --- src/client/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/game.cpp b/src/client/game.cpp index b66716036..8ff7050cd 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -2435,7 +2435,7 @@ void Game::updateCameraOrientation(CameraOrientation *cam, float dtime) cam->camera_pitch += input->joystick.getAxisWithoutDead(JA_FRUSTUM_VERTICAL) * c; } - cam->camera_pitch = rangelim(cam->camera_pitch, -89.5, 89.5); + cam->camera_pitch = rangelim(cam->camera_pitch, -90, 90); }