Core/Random: Changed random functions returning doubles to return floats
Port From (https://github.com/TrinityCore/TrinityCore/commit/9894f6b802c974bb36acd7fbb0d083455a1f0f1b)
This commit is contained in:
@@ -4129,7 +4129,7 @@ namespace Game.Spells
|
||||
//GO is always friendly to it's creator, get range for friends
|
||||
float min_dis = m_spellInfo.GetMinRange(true);
|
||||
float max_dis = m_spellInfo.GetMaxRange(true);
|
||||
float dis = (float)RandomHelper.NextDouble() * (max_dis - min_dis) + min_dis;
|
||||
float dis = RandomHelper.NextSingle() * (max_dis - min_dis) + min_dis;
|
||||
|
||||
unitCaster.GetClosePoint(out fx, out fy, out fz, SharedConst.DefaultPlayerBoundingRadius, dis);
|
||||
fo = unitCaster.GetOrientation();
|
||||
|
||||
Reference in New Issue
Block a user