1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Allow looking straight up or down

This commit is contained in:
sfan5 2025-02-23 16:18:27 +01:00
parent fc8c6742c4
commit 42a35cec83

View file

@ -2435,7 +2435,7 @@ void Game::updateCameraOrientation(CameraOrientation *cam, float dtime)
cam->camera_pitch += input->joystick.getAxisWithoutDead(JA_FRUSTUM_VERTICAL) * c; 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);
} }