aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2011-09-16 18:03:58 +0200
committerKahrl <kahrl@gmx.net>2011-09-16 18:03:58 +0200
commitacfb2bb8bced286626fa1fc04d56c9ba9ff82d48 (patch)
tree4c7d379c5b60f1de2be8a71f2bb85dc8f856f287 /src
parent63266928a5e2b6f4b712695eb56cb1de3899ba21 (diff)
downloadminetest-acfb2bb8bced286626fa1fc04d56c9ba9ff82d48.tar.gz
minetest-acfb2bb8bced286626fa1fc04d56c9ba9ff82d48.tar.bz2
minetest-acfb2bb8bced286626fa1fc04d56c9ba9ff82d48.zip
Revert some changes that could lead to slower map transfer and increaed network load.
Diffstat (limited to 'src')
-rw-r--r--src/server.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp
index c89e4113b..46993913f 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;
}