summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-23 18:25:32 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-23 18:25:32 +0200
commit578c9c4694344cb6e7c0e820f0687c98d3d5402d (patch)
tree75ff7f9edbe6c3d43b6e349639d9bfb7f159504e /source/cClientHandle.cpp
parentFixed entity equipment packet in the 1.3.2 protocol. (diff)
downloadcuberite-578c9c4694344cb6e7c0e820f0687c98d3d5402d.tar
cuberite-578c9c4694344cb6e7c0e820f0687c98d3d5402d.tar.gz
cuberite-578c9c4694344cb6e7c0e820f0687c98d3d5402d.tar.bz2
cuberite-578c9c4694344cb6e7c0e820f0687c98d3d5402d.tar.lz
cuberite-578c9c4694344cb6e7c0e820f0687c98d3d5402d.tar.xz
cuberite-578c9c4694344cb6e7c0e820f0687c98d3d5402d.tar.zst
cuberite-578c9c4694344cb6e7c0e820f0687c98d3d5402d.zip
Diffstat (limited to 'source/cClientHandle.cpp')
-rw-r--r--source/cClientHandle.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index 7108c7711..f13be381b 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -782,6 +782,8 @@ void cClientHandle::HandlePlayerMoveLook(double a_PosX, double a_PosY, double a_
else
{
LOGWARNING("Player \"%s\" sent a weird position confirmation %.2f blocks away, retrying", m_Username.c_str(), sqrt(Dist));
+ LOGD(" Expected pos: {%0.2f, %0.2f, %0.2f}", m_ConfirmPosition.x, m_ConfirmPosition.y, m_ConfirmPosition.z);
+ LOGD(" Received pos: {%0.2f, %0.2f, %0.2f}", a_PosX, a_PosY, a_PosZ);
m_ConfirmPosition = m_Player->GetPosition();
SendPlayerMoveLook();
}
@@ -1305,6 +1307,10 @@ void cClientHandle::SendPlayerSpawn(const cPlayer & a_Player)
return;
}
+ LOG("Spawning player \"%s\" on client \"%s\" @ %s",
+ a_Player.GetName().c_str(), GetPlayer()->GetName().c_str(), GetIPString().c_str()
+ );
+
m_Protocol->SendPlayerSpawn(a_Player);
}