aboutsummaryrefslogtreecommitdiff
path: root/src/client/content_cao.cpp
diff options
context:
space:
mode:
authorLars Müller <34514239+appgurueu@users.noreply.github.com>2022-07-17 15:45:57 +0200
committerGitHub <noreply@github.com>2022-07-17 14:45:57 +0100
commitd400a98ef0408ccbd2cc4c72f8b48c3813dfce41 (patch)
treea8dbc59f1db1b26bc4438b01c95208c683da65c2 /src/client/content_cao.cpp
parent7b6c4bf2e017d35e51c28736e31d03b5341edf27 (diff)
downloadminetest-d400a98ef0408ccbd2cc4c72f8b48c3813dfce41.tar.gz
minetest-d400a98ef0408ccbd2cc4c72f8b48c3813dfce41.tar.bz2
minetest-d400a98ef0408ccbd2cc4c72f8b48c3813dfce41.zip
Fix automatic rotate for attached entities (#12392)
Diffstat (limited to 'src/client/content_cao.cpp')
-rw-r--r--src/client/content_cao.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp
index 3126ee5e8..568d25fb7 100644
--- a/src/client/content_cao.cpp
+++ b/src/client/content_cao.cpp
@@ -1197,7 +1197,7 @@ void GenericCAO::step(float dtime, ClientEnvironment *env)
}
}
- if (!getParent() && node && fabs(m_prop.automatic_rotate) > 0.001f) {
+ if (node && fabs(m_prop.automatic_rotate) > 0.001f) {
// This is the child node's rotation. It is only used for automatic_rotate.
v3f local_rot = node->getRotation();
local_rot.Y = modulo360f(local_rot.Y - dtime * core::RADTODEG *