From 8f047b07046314f1ff22bfc775240aaeb300ef1b Mon Sep 17 00:00:00 2001 From: "keyboard.osh@gmail.com" Date: Tue, 2 Apr 2013 06:48:31 +0000 Subject: Added support for head yaw tracking and packet sending and fixed bug in BroadcastMovementUpdate git-svn-id: http://mc-server.googlecode.com/svn/trunk@1350 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ClientHandle.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/ClientHandle.cpp') diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index 2cb508b81..e6cc146c1 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -918,6 +918,7 @@ void cClientHandle::HandleChat(const AString & a_Message) void cClientHandle::HandlePlayerLook(float a_Rotation, float a_Pitch, bool a_IsOnGround) { m_Player->SetRotation (a_Rotation); + m_Player->SetHeadYaw (a_Rotation); m_Player->SetPitch (a_Pitch); m_Player->SetTouchGround(a_IsOnGround); m_Player->WrapRotation(); @@ -945,6 +946,7 @@ void cClientHandle::HandlePlayerMoveLook(double a_PosX, double a_PosY, double a_ m_Player->MoveTo(Vector3d(a_PosX, a_PosY, a_PosZ)); m_Player->SetStance (a_Stance); m_Player->SetTouchGround(a_IsOnGround); + m_Player->SetHeadYaw (a_Rotation); m_Player->SetRotation (a_Rotation); m_Player->SetPitch (a_Pitch); m_Player->WrapRotation(); -- cgit v1.2.3