Skip to content

Commit

Permalink
Fix camera panning glitches (partially revert 10489.)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhofhansl committed Nov 25, 2020
1 parent 7827302 commit 8dc70eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/clientmap.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 8dc70eb

Please sign in to comment.