Skip to content
Permalink
Browse files

Fix camera panning glitches (partially revert 10489.)

  • Loading branch information
lhofhansl committed Nov 25, 2020
1 parent 7827302 commit 8dc70ebb936277f740dffe9a11b5ee0fecc9de8e
Showing with 4 additions and 1 deletion.
  1. +4 −1 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;

0 comments on commit 8dc70eb

Please sign in to comment.