mirror of
https://github.com/minetest/minetest.git
synced 2025-07-01 15:40:23 +02: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:
@ -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;
|
||||
|
Reference in New Issue
Block a user