diff options
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index 02f78e233..30bd10198 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1935,11 +1935,13 @@ NodeMetadata* Client::getNodeMetadata(v3s16 p) return m_env.getMap().getNodeMetadata(p); } -v3f Client::getPlayerPosition() +v3f Client::getPlayerPosition(v3f *eye_position) { //JMutexAutoLock envlock(m_env_mutex); //bulk comment-out LocalPlayer *player = m_env.getLocalPlayer(); assert(player != NULL); + if (eye_position) + *eye_position = player->getEyePosition(); return player->getPosition(); } |