aboutsummaryrefslogtreecommitdiff
path: root/src/client/clientmap.cpp
diff options
context:
space:
mode:
authorLars <larsh@apache.org>2020-11-24 09:23:18 -0800
committerlhofhansl <larsh@apache.org>2020-11-25 14:22:36 -0800
commit8dc70ebb936277f740dffe9a11b5ee0fecc9de8e (patch)
tree528828a752d851441573cfc19bbe6e85d97e458d /src/client/clientmap.cpp
parent78273027bf4bbee7488c76c6d65f85381ec7c0ba (diff)
downloadminetest-8dc70ebb936277f740dffe9a11b5ee0fecc9de8e.tar.gz
minetest-8dc70ebb936277f740dffe9a11b5ee0fecc9de8e.tar.bz2
minetest-8dc70ebb936277f740dffe9a11b5ee0fecc9de8e.zip
Fix camera panning glitches (partially revert 10489.)
Diffstat (limited to 'src/client/clientmap.cpp')
-rw-r--r--src/client/clientmap.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/clientmap.cpp b/src/client/clientmap.cpp
index c8561def6..09072858a 100644
--- a/src/client/clientmap.cpp
+++ b/src/client/clientmap.cpp
@@ -124,7 +124,10 @@ void ClientMap::updateDrawList()
const v3f camera_position = m_camera_position;
const v3f camera_direction = m_camera_direction;
- const f32 camera_fov = m_camera_fov;
+
+ // Use a higher fov to accomodate faster camera movements.
+ // Blocks are cropped better when they are drawn.
+ const f32 camera_fov = m_camera_fov * 1.1f;
v3s16 cam_pos_nodes = floatToInt(camera_position, BS);
v3s16 p_blocks_min;