From 94b25685c53e8a4494c71557b8db3e2570f5c287 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 6 Feb 2012 17:26:48 +0200 Subject: Fix calculating if block is in viewing range; fix fog and default minimum accordingly --- src/utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utility.cpp') diff --git a/src/utility.cpp b/src/utility.cpp index 06b60884f..7c87b9ae4 100644 --- a/src/utility.cpp +++ b/src/utility.cpp @@ -208,7 +208,7 @@ bool isBlockInSight(v3s16 blockpos_b, v3f camera_pos, v3f camera_dir, return true; // If block is far away, it's not in sight - if(d > range * BS) + if(d > range) return false; // Maximum radius of a block -- cgit v1.2.3