diff options
author | keyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-03 07:11:00 +0200 |
---|---|---|
committer | keyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-03 07:11:00 +0200 |
commit | dd632789db44b6347860cf24c96dec70bb05d4ad (patch) | |
tree | 9e854789def8b3f7e9312413da2d5b22448812d5 | |
parent | Added support for head yaw tracking and packet sending and fixed bug in BroadcastMovementUpdate (diff) | |
download | cuberite-dd632789db44b6347860cf24c96dec70bb05d4ad.tar cuberite-dd632789db44b6347860cf24c96dec70bb05d4ad.tar.gz cuberite-dd632789db44b6347860cf24c96dec70bb05d4ad.tar.bz2 cuberite-dd632789db44b6347860cf24c96dec70bb05d4ad.tar.lz cuberite-dd632789db44b6347860cf24c96dec70bb05d4ad.tar.xz cuberite-dd632789db44b6347860cf24c96dec70bb05d4ad.tar.zst cuberite-dd632789db44b6347860cf24c96dec70bb05d4ad.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Entity.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/Entity.cpp b/source/Entity.cpp index aad4003cd..0cb97e1ef 100644 --- a/source/Entity.cpp +++ b/source/Entity.cpp @@ -422,6 +422,7 @@ void cEntity::SetRotation(double a_Rotation) { m_Rot.x = a_Rotation; m_bDirtyOrientation = true; + WrapRotation(); } @@ -432,6 +433,7 @@ void cEntity::SetPitch(double a_Pitch) { m_Rot.y = a_Pitch; m_bDirtyOrientation = true; + WrapRotation(); } |