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

Add unit tests for isBlockInSight()

This commit is contained in:
sfan5 2023-06-25 21:02:14 +02:00
parent 3b74cc4a41
commit 442d5fc75c
2 changed files with 69 additions and 1 deletions

View file

@ -289,7 +289,7 @@ void RemoteClient::GetNextBlocks (
FOV setting. The default of 72 degrees is fine.
Also retrieve a smaller view cone in the direction of the player's
movement.
(0.1 is about 4 degrees)
(0.1 is about 5 degrees)
*/
f32 dist;
if (!(isBlockInSight(p, camera_pos, camera_dir, camera_fov,