diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 3d35fc448..f31a3b0c4 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -1673,6 +1673,7 @@ void GameObject::SetRotationQuat(float qx, float qy, float qz, float qw) if (qz == 0 && qw == 0) quat = Quat::fromAxisAngleRotation(G3D::Vector3::unitZ(), GetOrientation()); + quat.unitize(); m_rotation = QuaternionCompressed(quat).m_raw; SetFloatValue(GAMEOBJECT_PARENTROTATION+0, quat.x); SetFloatValue(GAMEOBJECT_PARENTROTATION+1, quat.y); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index e2581d642..f2ef7bbf5 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11530" + #define REVISION_NR "11531" #endif // __REVISION_NR_H__