mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
refactor(Core/Misc): sin() to std::sin() (#9795)
This commit is contained in:
@@ -156,7 +156,7 @@ public:
|
||||
me->SetSpeed(MOVE_FLIGHT, 1.0f, true);
|
||||
me->SetSpeed(MOVE_RUN, 1.0f, true);
|
||||
float x = me->GetPositionX() + 20 * cos(me->GetOrientation());
|
||||
float y = me->GetPositionY() + 20 * sin(me->GetOrientation());
|
||||
float y = me->GetPositionY() + 20 * std::sin(me->GetOrientation());
|
||||
float z = me->GetPositionZ() + 40;
|
||||
me->DisableSpline();
|
||||
me->GetMotionMaster()->Clear(false);
|
||||
|
||||
@@ -89,7 +89,7 @@ struct npc_pet_mage_mirror_image : CasterAI
|
||||
|
||||
((Minion*)me)->SetFollowAngle(angle);
|
||||
if (owner->IsInCombat())
|
||||
me->NearTeleportTo(me->GetPositionX() + cos(angle)*dist, me->GetPositionY() + sin(angle)*dist, me->GetPositionZ(), me->GetOrientation(), false, false, false, false);
|
||||
me->NearTeleportTo(me->GetPositionX() + cos(angle)*dist, me->GetPositionY() + std::sin(angle)*dist, me->GetPositionZ(), me->GetOrientation(), false, false, false, false);
|
||||
else
|
||||
me->GetMotionMaster()->MoveFollow(owner, PET_FOLLOW_DIST, me->GetFollowAngle(), MOTION_SLOT_ACTIVE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user