*Use degree rather than radian for creature_formation table.
--HG-- branch : trunk
This commit is contained in:
1 parent
1c134f81e3
commit
5f023f64f3
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -4506,7 +4506,7 @@ bool ChatHandler::HandleNpcAddFormationCommand(const char* args)
|
||||
FormationInfo *group_member;
|
||||
|
||||
group_member = new FormationInfo;
|
||||
group_member->follow_angle = pCreature->GetAngle(chr) - chr->GetOrientation();
|
||||
group_member->follow_angle = (pCreature->GetAngle(chr) - chr->GetOrientation()) * 180 / M_PI;
|
||||
group_member->follow_dist = sqrtf(pow(chr->GetPositionX() - pCreature->GetPositionX(),int(2))+pow(chr->GetPositionY()-pCreature->GetPositionY(),int(2)));
|
||||
group_member->leaderGUID = leaderGUID;
|
||||
group_member->groupAI = 0;
|
||||
|
||||
Reference in new issue
Block a user