mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/Movement: Ensured object orientation is always within 0-2pi range, this fixes movement.
This commit is contained in:
@@ -303,7 +303,7 @@ class npc_coldflame : public CreatureScript
|
||||
{
|
||||
Position const* ownerPos = marrowgarAI->GetLastColdflamePosition();
|
||||
float ang = me->GetAngle(ownerPos) - static_cast<float>(M_PI);
|
||||
MapManager::NormalizeOrientation(ang);
|
||||
ang = MapManager::NormalizeOrientation(ang);
|
||||
me->SetOrientation(ang);
|
||||
owner->GetNearPosition(pos, 2.5f, 0.0f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user