Core/CreatureGroups: Calculation change requested by Shauren.

This commit is contained in:
Malcrom
2013-11-07 19:06:20 -03:30
parent 8aa9745c4c
commit 88c46a6886

View File

@@ -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;