refactor(Core/Misc): sin() to std::sin() (#9795)
This commit is contained in:
parent
66e6d33116
commit
cb7e355291
66 changed files with 212 additions and 211 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue