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

@ -156,7 +156,7 @@ public:
me->SetSpeed(MOVE_FLIGHT, 1.0f, true);
me->SetSpeed(MOVE_RUN, 1.0f, true);
float x = me->GetPositionX() + 20 * cos(me->GetOrientation());
float y = me->GetPositionY() + 20 * sin(me->GetOrientation());
float y = me->GetPositionY() + 20 * std::sin(me->GetOrientation());
float z = me->GetPositionZ() + 40;
me->DisableSpline();
me->GetMotionMaster()->Clear(false);