summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-11-27 21:58:22 +0100
committereray orçunus <erayorcunus@gmail.com>2019-11-27 22:22:38 +0100
commit64961430223850e1851cff6e4b5ebc60f2c9ec29 (patch)
treeb198bf9d9e39b16748dc815562f0c385215af54d /src/peds/Ped.cpp
parentCCivilianPed done & restore peds running to phone (diff)
downloadre3-64961430223850e1851cff6e4b5ebc60f2c9ec29.tar
re3-64961430223850e1851cff6e4b5ebc60f2c9ec29.tar.gz
re3-64961430223850e1851cff6e4b5ebc60f2c9ec29.tar.bz2
re3-64961430223850e1851cff6e4b5ebc60f2c9ec29.tar.lz
re3-64961430223850e1851cff6e4b5ebc60f2c9ec29.tar.xz
re3-64961430223850e1851cff6e4b5ebc60f2c9ec29.tar.zst
re3-64961430223850e1851cff6e4b5ebc60f2c9ec29.zip
Diffstat (limited to '')
-rw-r--r--src/peds/Ped.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index f18273e8..0f304c38 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -9244,7 +9244,7 @@ CPed::ProcessControl(void)
float timeDependentDist;
if (remainingBloodyFpTime >= 2000) {
if (remainingBloodyFpTime <= 7000)
- timeDependentDist = (remainingBloodyFpTime - 2000) / 5000 * 0.75f;
+ timeDependentDist = (remainingBloodyFpTime - 2000) / 5000.0f * 0.75f;
else
timeDependentDist = 0.75f;
} else {
@@ -9288,8 +9288,8 @@ CPed::ProcessControl(void)
} else {
CShadows::StoreStaticShadow(
(uintptr)this + 17, SHADOWTYPE_DARK, gpBloodPoolTex, &bloodPos,
- (remainingBloodyFpTime - 2000) / 5000 * 0.75f, 0.0f,
- 0.0f, (remainingBloodyFpTime - 2000) / 5000 * -0.75f,
+ (remainingBloodyFpTime - 2000) / 5000.0f * 0.75f, 0.0f,
+ 0.0f, (remainingBloodyFpTime - 2000) / 5000.0f * -0.75f,
255, 255, 0, 0, 4.0f, 1.0f, 40.0f, false, 0.0f);
}
}