diff options
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r-- | src/content_cao.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp index bb8dad032..e97e3a1be 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -1211,8 +1211,9 @@ public: updateNodePos(); } - if (getParent() == NULL && m_prop.automatic_face_movement_dir){ - m_yaw = atan2(m_velocity.Z,m_velocity.X) * 180 / M_PI; + if (getParent() == NULL && m_prop.automatic_face_movement_dir && + (fabs(m_velocity.Z) > 0.001 || fabs(m_velocity.X) > 0.001)){ + m_yaw = atan2(m_velocity.Z,m_velocity.X) * 180 / M_PI + m_prop.automatic_face_movement_dir_offset; updateNodePos(); } } |