From: Giuseppe Bilotta Date: Wed, 10 Aug 2011 06:07:30 +0000 (+0200) Subject: Server should use the same eye position as the client X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=c007d8219e0ed138e0cebd1492efac7a33ee2068;p=zefram%2Fminetest%2Fminetest_engine.git Server should use the same eye position as the client --- diff --git a/src/server.cpp b/src/server.cpp index 8a19306a..c2fb6097 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -380,8 +380,7 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime, v3s16 center = getNodeBlockPos(center_nodepos); // Camera position and direction - v3f camera_pos = - playerpos + v3f(0, BS+BS/2, 0); + v3f camera_pos = player->getEyePosition(); v3f camera_dir = v3f(0,0,1); camera_dir.rotateYZBy(player->getPitch()); camera_dir.rotateXZBy(player->getYaw());