aboutsummaryrefslogtreecommitdiff
path: root/src/content_cao.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r--src/content_cao.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index bbee0bc83..20f5fd3db 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -1210,6 +1210,11 @@ public:
m_yaw += dtime * m_prop.automatic_rotate * 180 / M_PI;
updateNodePos();
}
+
+ if (getParent() == NULL && m_prop.automatic_face_movement_dir){
+ m_yaw = atan2(m_velocity.Z,m_velocity.X) * 180 / M_PI;
+ updateNodePos();
+ }
}
void updateTexturePos()