*Use degree rather than radian for creature_formation table.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-17 17:29:25 -05:00
parent 1c134f81e3
commit 5f023f64f3
2 changed files with 3 additions and 3 deletions

View File

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