From dd632789db44b6347860cf24c96dec70bb05d4ad Mon Sep 17 00:00:00 2001 From: "keyboard.osh@gmail.com" Date: Wed, 3 Apr 2013 05:11:00 +0000 Subject: Fixed bug with Rotation not getting properly wrapped after being set. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1351 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Entity.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/Entity.cpp') 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(); } -- cgit v1.2.3