aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars <larsh@apache.org>2020-10-12 19:47:04 -0700
committerlhofhansl <larsh@apache.org>2020-10-13 09:30:59 -0700
commit521a04222a71325ef217d1214febf5591919e169 (patch)
treea9c685efedaee8d584c2498c5e242b714b2bc348
parent11f3deb9c4512b918de8f5e778bc8b9535bd62c7 (diff)
downloadminetest-521a04222a71325ef217d1214febf5591919e169.tar.gz
minetest-521a04222a71325ef217d1214febf5591919e169.tar.bz2
minetest-521a04222a71325ef217d1214febf5591919e169.zip
Avoid drawing invisible blocks on the client.
-rw-r--r--src/client/clientmap.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/client/clientmap.cpp b/src/client/clientmap.cpp
index 3124313e7..d372a8e46 100644
--- a/src/client/clientmap.cpp
+++ b/src/client/clientmap.cpp
@@ -124,12 +124,6 @@ void ClientMap::updateDrawList()
v3f camera_position = m_camera_position;
v3f camera_direction = m_camera_direction;
- f32 camera_fov = m_camera_fov;
-
- // Use a higher fov to accomodate faster camera movements.
- // Blocks are cropped better when they are drawn.
- // Or maybe they aren't? Well whatever.
- camera_fov *= 1.2;
v3s16 cam_pos_nodes = floatToInt(camera_position, BS);
v3s16 p_blocks_min;
@@ -190,7 +184,7 @@ void ClientMap::updateDrawList()
float d = 0.0;
if (!isBlockInSight(block->getPos(), camera_position,
- camera_direction, camera_fov, range, &d))
+ camera_direction, m_camera_fov, range, &d))
continue;