refactor(Core/Misc): sin() to std::sin() (#9795)

This commit is contained in:
Kitzunu 2022-01-06 19:29:40 +01:00 committed by GitHub
parent 66e6d33116
commit cb7e355291
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
66 changed files with 212 additions and 211 deletions

View file

@ -65,7 +65,7 @@ void PointMovementGenerator<T>::DoInitialize(T* unit)
if (G3D::fuzzyEq(unit->GetPositionX(), i_x) && G3D::fuzzyEq(unit->GetPositionY(), i_y))
{
i_x += 0.2f * cos(unit->GetOrientation());
i_y += 0.2f * sin(unit->GetOrientation());
i_y += 0.2f * std::sin(unit->GetOrientation());
}
init.MoveTo(i_x, i_y, i_z, true);
@ -77,7 +77,7 @@ void PointMovementGenerator<T>::DoInitialize(T* unit)
if (G3D::fuzzyEq(unit->GetPositionX(), i_x) && G3D::fuzzyEq(unit->GetPositionY(), i_y))
{
i_x += 0.2f * cos(unit->GetOrientation());
i_y += 0.2f * sin(unit->GetOrientation());
i_y += 0.2f * std::sin(unit->GetOrientation());
}
init.MoveTo(i_x, i_y, i_z, true);