summaryrefslogtreecommitdiffstats
path: root/src/peds/PlayerPed.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-06-05 12:13:27 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:45:48 +0200
commit776e8ff2eeb96a068383f5802e0d86f56b69c1f0 (patch)
tree4ce647151b3b9205cb7480416f175826a1aa97c4 /src/peds/PlayerPed.cpp
parentFix sin & cos calls (diff)
downloadre3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.tar
re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.tar.gz
re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.tar.bz2
re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.tar.lz
re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.tar.xz
re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.tar.zst
re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.zip
Diffstat (limited to 'src/peds/PlayerPed.cpp')
-rw-r--r--src/peds/PlayerPed.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp
index b161caed..5c40419e 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);
@@ -1484,7 +1484,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);