Revert some changes that could lead to slower map transfer and increaed network load.
authorKahrl <kahrl@gmx.net>
Fri, 16 Sep 2011 16:03:58 +0000 (18:03 +0200)
committerKahrl <kahrl@gmx.net>
Fri, 16 Sep 2011 16:03:58 +0000 (18:03 +0200)
src/server.cpp

index c89e4113be6581f15fd462b92e724327e9613ed3..46993913f3d7be86ce2caa2e896ab99353acd048 100644 (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, 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;
                        }