1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-24 08:28:49 -05:00

Revert some changes that could lead to slower map transfer and increaed network load.

This commit is contained in:
Kahrl 2011-09-16 18:03:58 +02:00
parent 63266928a5
commit acfb2bb8bc

View File

@ -582,9 +582,12 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime,
/* /*
Don't generate or send if not in sight 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, PI, 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; continue;
} }