projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6326692
)
Revert some changes that could lead to slower map transfer and increaed network load.
author
Kahrl
<kahrl@gmx.net>
Fri, 16 Sep 2011 16:03:58 +0000
(18:03 +0200)
committer
Kahrl
<kahrl@gmx.net>
Fri, 16 Sep 2011 16:03:58 +0000
(18:03 +0200)
src/server.cpp
patch
|
blob
|
history
diff --git
a/src/server.cpp
b/src/server.cpp
index c89e4113be6581f15fd462b92e724327e9613ed3..46993913f3d7be86ce2caa2e896ab99353acd048 100644
(file)
--- 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;
}