summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-07 00:01:48 +0200
committeraap <aap@papnet.eu>2020-06-07 00:01:59 +0200
commit5711159e684e0612739ee66d3cd7e4444c7dc72d (patch)
tree85b6b6eb77087268c3c0134561913833deef892c /src/peds/Ped.cpp
parentfix (diff)
downloadre3-5711159e684e0612739ee66d3cd7e4444c7dc72d.tar
re3-5711159e684e0612739ee66d3cd7e4444c7dc72d.tar.gz
re3-5711159e684e0612739ee66d3cd7e4444c7dc72d.tar.bz2
re3-5711159e684e0612739ee66d3cd7e4444c7dc72d.tar.lz
re3-5711159e684e0612739ee66d3cd7e4444c7dc72d.tar.xz
re3-5711159e684e0612739ee66d3cd7e4444c7dc72d.tar.zst
re3-5711159e684e0612739ee66d3cd7e4444c7dc72d.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 3dfb167c..af7d348a 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -6797,7 +6797,7 @@ CPed::EnterCar(void)
LineUpPedWithCar(LINE_UP_TO_CAR_START);
if (veh->IsBike()) {
CBike *bike = (CBike*)veh;
- if (bike->GetStatus() != STATUS_ABANDONED || bike->m_bike_flag08 || !m_pVehicleAnim) {
+ if (bike->GetStatus() != STATUS_ABANDONED || bike->bIsBeingPickedUp || !m_pVehicleAnim) {
if (m_nPedState == PED_CARJACK && m_pVehicleAnim) {
if (m_pVehicleAnim->currentTime > 0.4f && m_pVehicleAnim->currentTime - m_pVehicleAnim->timeStep <= 0.4f) {
int anim = m_pVehicleAnim->animId;
@@ -6813,9 +6813,9 @@ CPed::EnterCar(void)
// One is pickup and other one is pullup, not same :p
if ((anim == ANIM_BIKE_PICKUP_R || anim == ANIM_BIKE_PICKUP_L) && m_pVehicleAnim->currentTime > 0.4667f)
- bike->m_bike_flag08 = true;
+ bike->bIsBeingPickedUp = true;
else if ((anim == ANIM_BIKE_PULLUP_R || anim == ANIM_BIKE_PULLUP_L) && m_pVehicleAnim->currentTime > 0.4667f)
- bike->m_bike_flag08 = true;
+ bike->bIsBeingPickedUp = true;
}
}
} else {