mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Zoom FOV: Reduce minimum zoom FOV to 7 degrees
The default of 15 is unchanged. 7 degrees is x10 magnification which is common for binoculars. Alter hardcoded limits in camera.cpp: Minimum 7 degrees. Maximum 160 degrees to match upper limits in advanced settings.
This commit is contained in:
parent
d413dfe87c
commit
59fdf57134
3 changed files with 3 additions and 4 deletions
|
@ -393,8 +393,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime,
|
|||
} else {
|
||||
fov_degrees = m_cache_fov;
|
||||
}
|
||||
fov_degrees = MYMAX(fov_degrees, 10.0);
|
||||
fov_degrees = MYMIN(fov_degrees, 170.0);
|
||||
fov_degrees = rangelim(fov_degrees, 7.0, 160.0);
|
||||
|
||||
// FOV and aspect ratio
|
||||
m_aspect = (f32) porting::getWindowSize().X / (f32) porting::getWindowSize().Y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue