diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-02-28 20:41:04 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-02-28 20:41:04 +0100 |
commit | 288966e796bfa4309fdcb08b9392b61befc3faab (patch) | |
tree | 67d3754d1f0773e954470efe6638dfb99d9c7e1f | |
parent | c70bd6f5e49366f4d023682a182a51f0b743965e (diff) |
Core/Movement: Fixed MoveRotate not updating orientation
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index c285fae8f96..36a1d1545ed 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -603,7 +603,7 @@ void Unit::UpdateSplinePosition() return; } - if (HasUnitState(UNIT_STATE_CANNOT_TURN)) + if (HasUnitState(UNIT_STATE_LOST_CONTROL | UNIT_STATE_FOCUSING)) loc.orientation = GetOrientation(); UpdatePosition(loc.x, loc.y, loc.z, loc.orientation); |