mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Allow looking straight up or down
This commit is contained in:
parent
fc8c6742c4
commit
42a35cec83
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue