aboutsummaryrefslogtreecommitdiff
path: root/src/camera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/camera.cpp')
-rw-r--r--src/camera.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/camera.cpp b/src/camera.cpp
index ebb154137..1bbdb56ea 100644
--- a/src/camera.cpp
+++ b/src/camera.cpp
@@ -71,7 +71,9 @@ Camera::Camera(MapDrawControl &draw_control, Client *client):
*/
m_cache_fall_bobbing_amount = g_settings->getFloat("fall_bobbing_amount");
m_cache_view_bobbing_amount = g_settings->getFloat("view_bobbing_amount");
- m_cache_fov = g_settings->getFloat("fov");
+ // 45 degrees is the lowest FOV that doesn't cause the server to treat this
+ // as a zoom FOV and load world beyond the set server limits.
+ m_cache_fov = std::fmax(g_settings->getFloat("fov"), 45.0f);
m_arm_inertia = g_settings->getBool("arm_inertia");
m_nametags.clear();
}