Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created December 30, 2014 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/4c0dbb62b3bd67666c03 to your computer and use it in GitHub Desktop.
Save kahrl/4c0dbb62b3bd67666c03 to your computer and use it in GitHub Desktop.
diff --git a/src/util/numeric.cpp b/src/util/numeric.cpp
index 6173515..7a223df 100644
--- a/src/util/numeric.cpp
+++ b/src/util/numeric.cpp
@@ -220,7 +220,8 @@ bool isBlockInSight(v3s16 blockpos_b, v3f camera_pos, v3f camera_dir,
// If block is (nearly) touching the camera, don't
// bother validating further (that is, render it anyway)
- if(d < block_max_radius)
+ // The 1.1 factor here fixes issue #2032.
+ if(d < block_max_radius * 1.1)
return true;
// Adjust camera position, for purposes of computing the angle,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment