summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-07-21 19:22:52 +0200
committereray orçunus <erayorcunus@gmail.com>2020-07-21 19:22:52 +0200
commit4cf6024cdbd0d6ad3f12ae187dc7b2c51cae0913 (patch)
tree240c15bc5b16bacde6c2a5e78da3fdec4a4063e1 /src/peds
parenta cute mistake (diff)
downloadre3-4cf6024cdbd0d6ad3f12ae187dc7b2c51cae0913.tar
re3-4cf6024cdbd0d6ad3f12ae187dc7b2c51cae0913.tar.gz
re3-4cf6024cdbd0d6ad3f12ae187dc7b2c51cae0913.tar.bz2
re3-4cf6024cdbd0d6ad3f12ae187dc7b2c51cae0913.tar.lz
re3-4cf6024cdbd0d6ad3f12ae187dc7b2c51cae0913.tar.xz
re3-4cf6024cdbd0d6ad3f12ae187dc7b2c51cae0913.tar.zst
re3-4cf6024cdbd0d6ad3f12ae187dc7b2c51cae0913.zip
Diffstat (limited to 'src/peds')
-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 bbb8b2ae..e134ac5d 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -1821,7 +1821,7 @@ void
CPed::PlayFootSteps(void)
{
if (bDoBloodyFootprints) {
- if (m_bloodyFootprintCountOrDeathTime != 0 && m_bloodyFootprintCountOrDeathTime < 300) {
+ if (m_bloodyFootprintCountOrDeathTime > 0 && m_bloodyFootprintCountOrDeathTime < 300) {
m_bloodyFootprintCountOrDeathTime--;
if (m_bloodyFootprintCountOrDeathTime == 0)
@@ -9823,7 +9823,7 @@ CPed::ProcessControl(void)
|| (!bIsStanding && !bWasStanding && m_nPedState == PED_FALL)
#endif
) {
- if (m_nPedStateTimer <= 1000 && m_nPedStateTimer) {
+ if (m_nPedStateTimer > 0 && m_nPedStateTimer <= 1000) {
forceDir = GetPosition() - m_vecHitLastPos;
} else {
m_nPedStateTimer = 0;
@@ -13712,7 +13712,7 @@ CPed::ProcessObjective(void)
#endif
}
if (bObjectiveCompleted
- || m_objectiveTimer != 0 && CTimer::GetTimeInMilliseconds() > m_objectiveTimer) {
+ || m_objectiveTimer > 0 && CTimer::GetTimeInMilliseconds() > m_objectiveTimer) {
RestorePreviousObjective();
if (m_objectiveTimer > CTimer::GetTimeInMilliseconds() || !m_objectiveTimer)
m_objectiveTimer = CTimer::GetTimeInMilliseconds() - 1;