Skip to content

Commit 521a042

Browse files
committedOct 13, 2020
Avoid drawing invisible blocks on the client.
1 parent 11f3deb commit 521a042

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

‎src/client/clientmap.cpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,6 @@ void ClientMap::updateDrawList()
124124

125125
v3f camera_position = m_camera_position;
126126
v3f camera_direction = m_camera_direction;
127-
f32 camera_fov = m_camera_fov;
128-
129-
// Use a higher fov to accomodate faster camera movements.
130-
// Blocks are cropped better when they are drawn.
131-
// Or maybe they aren't? Well whatever.
132-
camera_fov *= 1.2;
133127

134128
v3s16 cam_pos_nodes = floatToInt(camera_position, BS);
135129
v3s16 p_blocks_min;
@@ -190,7 +184,7 @@ void ClientMap::updateDrawList()
190184

191185
float d = 0.0;
192186
if (!isBlockInSight(block->getPos(), camera_position,
193-
camera_direction, camera_fov, range, &d))
187+
camera_direction, m_camera_fov, range, &d))
194188
continue;
195189

196190

0 commit comments

Comments
 (0)
Please sign in to comment.