1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Merge branch 'view_bobbing_and_vielded_tool'

This commit is contained in:
Perttu Ahola
2011-09-26 15:10:02 +03:00
23 changed files with 1417 additions and 501 deletions

View File

@@ -582,9 +582,12 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime,
/*
Don't generate or send if not in sight
FIXME This only works if the client uses a small enough
FOV setting. The default of 72 degrees is fine.
*/
if(isBlockInSight(p, camera_pos, camera_dir, 10000*BS) == false)
float camera_fov = (72.0*PI/180) * 4./3.;
if(isBlockInSight(p, camera_pos, camera_dir, camera_fov, 10000*BS) == false)
{
continue;
}