From 288966e796bfa4309fdcb08b9392b61befc3faab Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 28 Feb 2024 20:41:04 +0100 Subject: Core/Movement: Fixed MoveRotate not updating orientation --- src/server/game/Entities/Unit/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3