summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-08-16 16:10:59 +0200
committereray orçunus <erayorcunus@gmail.com>2020-08-16 16:10:59 +0200
commit980dd1b5a17440e9a272b7b47ad3553cd1ce11ff (patch)
treef0bc6cfc1030f3eaf25c53b4e22db3717fc49074 /src/peds/Ped.cpp
parentMerge branch 'master' into miami (diff)
downloadre3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.tar
re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.tar.gz
re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.tar.bz2
re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.tar.lz
re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.tar.xz
re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.tar.zst
re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.zip
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r--src/peds/Ped.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 303c0cbc..c675b7e5 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -439,7 +439,7 @@ CPed::CPed(uint32 pedType) : m_pedIK(this)
bCrouchWhenScared = false;
bKnockedOffBike = false;
b158_8 = false;
- b158_10 = false;
+ bCollectBusFare = false;
bBoughtIceCream = false;
b158_40 = false;
@@ -12986,10 +12986,10 @@ CPed::PedSetInCarCB(CAnimBlendAssociation *animAssoc, void *arg)
ped->b157_40 = false;
ped->bRemoveFromWorld = true;
}
- if (ped->b158_10) {
- ped->b158_10 = false;
+ if (ped->bCollectBusFare) {
+ ped->bCollectBusFare = false;
if (FindPlayerPed())
- FindPlayerPed()->m_nPadUpPressedInMilliseconds += 5;
+ FindPlayerPed()->m_nLastBusFareCollected += 5;
}
if (!ped->IsNotInWreckedVehicle() || ped->DyingOrDead())
@@ -15176,7 +15176,7 @@ CPed::ProcessObjective(void)
b157_40 = true;
CPlayerPed *player = FindPlayerPed();
if (pBus->IsPassenger(player) || pBus->IsDriver(player)) {
- b158_10 = true;
+ bCollectBusFare = true;
}
}
}