diff options
author | ariel- <ariel-@users.noreply.github.com> | 2016-08-25 13:21:27 +0200 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-02-18 16:54:56 +0100 |
commit | 7f66c730ec5af1f950aec42440cda56cb7418701 (patch) | |
tree | adc40f161752b13b96287a8415c43b19bd1a344f /src | |
parent | 77ecafaa422c7ee8951041724855f9743581df3f (diff) |
Update boss_kelthuzad.cpp
(cherry picked from commit 7e4abce820072966dd060c18c8f9901b6da04c98)
Core/Scripts: fix math error that would not select points on the entire circle
(cherry picked from commit cd9226e755640712b308753a43336fdc43af05f5)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp b/src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp index 4182772740c..15718e09b72 100644 --- a/src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp +++ b/src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp @@ -1,6 +1,5 @@ /* * Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/> - * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -150,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; |