mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
refactor(Core/Misc): sin() to std::sin() (#9795)
This commit is contained in:
@@ -165,7 +165,7 @@ class spell_winter_veil_racer_rocket_slam : public SpellScript
|
||||
{
|
||||
Position pos;
|
||||
float x = caster->GetPositionX() + 30 * cos(caster->GetOrientation());
|
||||
float y = caster->GetPositionY() + 30 * sin(caster->GetOrientation());
|
||||
float y = caster->GetPositionY() + 30 * std::sin(caster->GetOrientation());
|
||||
pos.Relocate(x, y, caster->GetMap()->GetHeight(x, y, MAX_HEIGHT) + 0.5f);
|
||||
//caster->GetFirstCollisionPosition(pos, 30.0f, caster->GetOrientation());
|
||||
caster->CastSpell(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), SPELL_RACER_CHARGE_TO_OBJECT, true);
|
||||
|
||||
Reference in New Issue
Block a user