From: Kahrl Date: Fri, 16 Sep 2011 16:03:58 +0000 (+0200) Subject: Revert some changes that could lead to slower map transfer and increaed network load. X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=acfb2bb8bced286626fa1fc04d56c9ba9ff82d48;p=zefram%2Fminetest%2Fminetest_engine.git Revert some changes that could lead to slower map transfer and increaed network load. --- diff --git a/src/server.cpp b/src/server.cpp index c89e4113..46993913 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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, 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; }