diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-02-01 13:40:48 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-02-01 13:40:48 +1100 |
commit | a424c3cfe8580a2d17f47d614897cca87f95a02e (patch) | |
tree | 9619149dd52778858435d4a67db27f4f60e60cdc /source/game/StarPlayer.cpp | |
parent | 574c62bc32a99891295ecdcf671c7e3145c7aab2 (diff) |
add command to disable head rotation per-char
Diffstat (limited to 'source/game/StarPlayer.cpp')
-rw-r--r-- | source/game/StarPlayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarPlayer.cpp b/source/game/StarPlayer.cpp index c094bbb..af85cce 100644 --- a/source/game/StarPlayer.cpp +++ b/source/game/StarPlayer.cpp @@ -1086,7 +1086,7 @@ void Player::update(float dt, uint64_t) { } if (calculateHeadRotation) { // master or not an OpenStarbound player float headRotation = 0.f; - if (m_humanoid->primaryHandHoldingItem() || m_humanoid->altHandHoldingItem() || m_humanoid->dance()) { + if (Humanoid::globalHeadRotation() && (m_humanoid->primaryHandHoldingItem() || m_humanoid->altHandHoldingItem() || m_humanoid->dance())) { auto primary = m_tools->primaryHandItem(); auto alt = m_tools->altHandItem(); String const disableFlag = "disableHeadRotation"; |