aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-08-25 08:53:35 -0300
committerariel- <ariel-@users.noreply.github.com>2016-08-25 08:53:35 -0300
commitcd9226e755640712b308753a43336fdc43af05f5 (patch)
treeb3766e2a53eb377d42e075e55c6d783a8eef966f /src
parent8a8362ef153eca50be0bcb5670e615b9685607fc (diff)
Core/Scripts: fix math error that would not select points on the entire circle
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp b/src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp
index e422cc51933..785048bf50a 100644
--- a/src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp
+++ b/src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp
@@ -149,7 +149,7 @@ static inline Position const& GetRandomMinionSpawnPoint()
// uniformly distribute on the circle
static Position GetRandomPositionOnCircle(Position const& center, float radius)
{
- double angle = rand_norm() * M_2_PI;
+ double angle = rand_norm() * 2.0 * M_PI;
double relDistance = rand_norm() + rand_norm();
if (relDistance > 1)
relDistance = 1 - relDistance;