mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-16 08:46:09 +00:00
refactor(Core/Misc): sqrt/log/exp() to std::sqrt/log/exp() (#9792)
This commit is contained in:
@@ -246,7 +246,7 @@ struct boss_twin_valkyrAI : public ScriptedAI
|
||||
if (!victim || !victim->IsInWorld())
|
||||
return;
|
||||
|
||||
float allowedDist = sqrt(MELEE_RANGE * MELEE_RANGE + 6.0f * 6.0f);
|
||||
float allowedDist = std::sqrt(MELEE_RANGE * MELEE_RANGE + 6.0f * 6.0f);
|
||||
if (!me->IsWithinMeleeRange(victim, allowedDist))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user