diff options
author | keyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-02 08:48:31 +0200 |
---|---|---|
committer | keyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-02 08:48:31 +0200 |
commit | 8f047b07046314f1ff22bfc775240aaeb300ef1b (patch) | |
tree | 287f9ae175e57adc03eb0dd2d8d47229b3e64d64 /source/ClientHandle.cpp | |
parent | Cobweb lets light through. (diff) | |
download | cuberite-8f047b07046314f1ff22bfc775240aaeb300ef1b.tar cuberite-8f047b07046314f1ff22bfc775240aaeb300ef1b.tar.gz cuberite-8f047b07046314f1ff22bfc775240aaeb300ef1b.tar.bz2 cuberite-8f047b07046314f1ff22bfc775240aaeb300ef1b.tar.lz cuberite-8f047b07046314f1ff22bfc775240aaeb300ef1b.tar.xz cuberite-8f047b07046314f1ff22bfc775240aaeb300ef1b.tar.zst cuberite-8f047b07046314f1ff22bfc775240aaeb300ef1b.zip |
Diffstat (limited to 'source/ClientHandle.cpp')
-rw-r--r-- | source/ClientHandle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |