1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Fix calculating if block is in viewing range; fix fog and default minimum accordingly

This commit is contained in:
Perttu Ahola 2012-02-06 17:26:48 +02:00
parent 88cdd3a363
commit 94b25685c5
3 changed files with 3 additions and 3 deletions

View file

@ -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