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
This commit is contained in:
parent
8f047b0704
commit
dd632789db
@ -422,6 +422,7 @@ void cEntity::SetRotation(double a_Rotation)
|
|||||||
{
|
{
|
||||||
m_Rot.x = a_Rotation;
|
m_Rot.x = a_Rotation;
|
||||||
m_bDirtyOrientation = true;
|
m_bDirtyOrientation = true;
|
||||||
|
WrapRotation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -432,6 +433,7 @@ void cEntity::SetPitch(double a_Pitch)
|
|||||||
{
|
{
|
||||||
m_Rot.y = a_Pitch;
|
m_Rot.y = a_Pitch;
|
||||||
m_bDirtyOrientation = true;
|
m_bDirtyOrientation = true;
|
||||||
|
WrapRotation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user