mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 01:25:20 +02:00
Fix calculating if block is in viewing range; fix fog and default minimum accordingly
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user