diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-06-05 12:13:27 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:34:33 +0200 |
commit | fad64667a7b0199786a6c031248ad726fdc9d22d (patch) | |
tree | b669d06ed09dae469d6a6054d97d81835fda213e /src/peds/PlayerPed.cpp | |
parent | Fix sin & cos calls (diff) | |
download | re3-fad64667a7b0199786a6c031248ad726fdc9d22d.tar re3-fad64667a7b0199786a6c031248ad726fdc9d22d.tar.gz re3-fad64667a7b0199786a6c031248ad726fdc9d22d.tar.bz2 re3-fad64667a7b0199786a6c031248ad726fdc9d22d.tar.lz re3-fad64667a7b0199786a6c031248ad726fdc9d22d.tar.xz re3-fad64667a7b0199786a6c031248ad726fdc9d22d.tar.zst re3-fad64667a7b0199786a6c031248ad726fdc9d22d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/PlayerPed.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp index 65180ee5..4ff4e575 100644 --- a/src/peds/PlayerPed.cpp +++ b/src/peds/PlayerPed.cpp @@ -869,7 +869,7 @@ CPlayerPed::PlayerControl1stPersonRunAround(CPad *padUsed) if (m_nPedState == PED_JUMP) { if (bIsInTheAir) { if (bUsesCollision && !bHitSteepSlope && (!bHitSomethingLastFrame || m_vecDamageNormal.z > 0.6f) - && m_fDistanceTravelled < CTimer::GetTimeStep() * 0.02 && m_vecMoveSpeed.MagnitudeSqr() < 0.01f) { + && m_fDistanceTravelled < CTimer::GetTimeStepInSeconds() && m_vecMoveSpeed.MagnitudeSqr() < 0.01f) { float angleSin = Sin(m_fRotationCur); // originally sin(DEGTORAD(RADTODEG(m_fRotationCur))) o_O float angleCos = Cos(m_fRotationCur); @@ -1483,7 +1483,7 @@ CPlayerPed::PlayerControlZelda(CPad *padUsed) if (m_nPedState == PED_JUMP) { if (bIsInTheAir) { if (bUsesCollision && !bHitSteepSlope && (!bHitSomethingLastFrame || m_vecDamageNormal.z > 0.6f) - && m_fDistanceTravelled < CTimer::GetTimeStep() * 0.02 && m_vecMoveSpeed.MagnitudeSqr() < 0.01f) { + && m_fDistanceTravelled < CTimer::GetTimeStepInSeconds() && m_vecMoveSpeed.MagnitudeSqr() < 0.01f) { float angleSin = Sin(m_fRotationCur); // originally sin(DEGTORAD(RADTODEG(m_fRotationCur))) o_O float angleCos = Cos(m_fRotationCur); |