Created
December 30, 2014 22:34
-
-
Save kahrl/4c0dbb62b3bd67666c03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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