mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/CreatureGroups: Calculation change requested by Shauren.
This commit is contained in:
@@ -229,9 +229,9 @@ void CreatureGroup::LeaderMoveTo(float x, float y, float z)
|
||||
if (itr->second->point_1)
|
||||
{
|
||||
if (m_leader->GetCurrentWaypointID() == itr->second->point_1)
|
||||
itr->second->follow_angle = itr->second->follow_angle + M_PI;
|
||||
itr->second->follow_angle = (2 * M_PI) - itr->second->follow_angle;
|
||||
if (m_leader->GetCurrentWaypointID() == itr->second->point_2)
|
||||
itr->second->follow_angle = itr->second->follow_angle - M_PI;
|
||||
itr->second->follow_angle = (2 * M_PI) + itr->second->follow_angle;
|
||||
}
|
||||
|
||||
float angle = itr->second->follow_angle;
|
||||
|
||||
Reference in New Issue
Block a user