mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
fix(Core/Common): -Wdeprecated-enum-float-conversion warning (#6870)
This commit is contained in:
@@ -281,8 +281,8 @@ public:
|
||||
me->CastSpell(me, me->GetMap()->IsHeroic() ? SPELL_FLAME_SPHERE_PERIODIC_H : SPELL_FLAME_SPHERE_PERIODIC, true);
|
||||
|
||||
float angle = rand_norm() * 2 * M_PI;
|
||||
float x = me->GetPositionX() + DATA_SPHERE_DISTANCE * cos(angle);
|
||||
float y = me->GetPositionY() + DATA_SPHERE_DISTANCE * sin(angle);
|
||||
float x = me->GetPositionX() + static_cast<float>(DATA_SPHERE_DISTANCE) * cos(angle);
|
||||
float y = me->GetPositionY() + static_cast<float>(DATA_SPHERE_DISTANCE) * sin(angle);
|
||||
me->GetMotionMaster()->MovePoint(0, x, y, me->GetPositionZ());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user