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:
parent
3b74cc4a41
commit
442d5fc75c
2 changed files with 69 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue