From bc89e1cdb0da10e53cc9fa4a97565c05bb4c052e Mon Sep 17 00:00:00 2001 From: Treeston Date: Sun, 1 Apr 2018 13:52:36 +0200 Subject: Core/Position: Refactor GetAngle -> GetAbsoluteAngle because code clarity is good. (cherry picked from commit 4692e10ca2ffed5ba2a0336e9c93962b0fad9eaa) --- src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Outland/TempestKeep') diff --git a/src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp b/src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp index c630d2f37e8..045b05009d5 100644 --- a/src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp +++ b/src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp @@ -194,7 +194,7 @@ class boss_warp_splinter : public CreatureScript float X = Treant_Spawn_Pos_X + TREANT_SPAWN_DIST * std::cos(angle); float Y = Treant_Spawn_Pos_Y + TREANT_SPAWN_DIST * std::sin(angle); - float O = - me->GetAngle(X, Y); + float O = - me->GetAbsoluteAngle(X, Y); if (Creature* pTreant = me->SummonCreature(CREATURE_TREANT, treant_pos[i][0], treant_pos[i][1], treant_pos[i][2], O, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 25000)) ENSURE_AI(npc_warp_splinter_treant::npc_warp_splinter_treantAI, pTreant->AI())->WarpGuid = me->GetGUID(); -- cgit v1.2.3