summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-02-25 20:54:26 +0100
committerFilip Gawin <filip.gawin@zoho.com>2020-03-22 17:30:54 +0100
commitc88c2115e227ef0dbac6368224f1564159a9e2df (patch)
treed58a1ae9fa66ff43f6bf71aa020f9f78b66f7544 /src/peds
parentFixes for Serge's review (diff)
downloadre3-c88c2115e227ef0dbac6368224f1564159a9e2df.tar
re3-c88c2115e227ef0dbac6368224f1564159a9e2df.tar.gz
re3-c88c2115e227ef0dbac6368224f1564159a9e2df.tar.bz2
re3-c88c2115e227ef0dbac6368224f1564159a9e2df.tar.lz
re3-c88c2115e227ef0dbac6368224f1564159a9e2df.tar.xz
re3-c88c2115e227ef0dbac6368224f1564159a9e2df.tar.zst
re3-c88c2115e227ef0dbac6368224f1564159a9e2df.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 45590b07..7fc83be3 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -10169,7 +10169,7 @@ CPed::ProcessControl(void)
}
if (!bIsStanding && m_vecMoveSpeed.z > 0.25f) {
- double airResistance = Pow(0.95, CTimer::GetTimeStep());
+ float airResistance = Pow(0.95f, CTimer::GetTimeStep());
m_vecMoveSpeed *= airResistance;
}
@@ -15048,7 +15048,7 @@ CPed::ProcessBuoyancy(void)
m_vecMoveSpeed.y *= speedMult;
if (m_vecMoveSpeed.z >= -0.1f) {
if (m_vecMoveSpeed.z < -0.04f)
- m_vecMoveSpeed.z = -0.02;
+ m_vecMoveSpeed.z = -0.02f;
} else {
m_vecMoveSpeed.z = -0.01f;
DMAudio.PlayOneShot(m_audioEntityId, SOUND_SPLASH, 0.0f);