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:
b318e82
)
Server should use the same eye position as the client
author
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Wed, 10 Aug 2011 06:07:30 +0000
(08:07 +0200)
committer
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Thu, 11 Aug 2011 13:22:35 +0000
(15:22 +0200)
src/server.cpp
patch
|
blob
|
history
diff --git
a/src/server.cpp
b/src/server.cpp
index 8a19306a9a55b7c1aeeaf12274178f5248494acc..c2fb6097e1c3c08747ea3e95e1cad4ece30f00d6 100644
(file)
--- 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());