summaryrefslogtreecommitdiffstats
path: root/src/control/Script4.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-13 13:01:20 +0100
committeraap <aap@papnet.eu>2021-01-13 13:01:20 +0100
commite3a261d29cbb10abc0776ca697512349845a105c (patch)
tree00ac13e7cad5e8bbdc0d22eb4ad9e62c046b93e2 /src/control/Script4.cpp
parentPort cmake improvements to miami (diff)
downloadre3-e3a261d29cbb10abc0776ca697512349845a105c.tar
re3-e3a261d29cbb10abc0776ca697512349845a105c.tar.gz
re3-e3a261d29cbb10abc0776ca697512349845a105c.tar.bz2
re3-e3a261d29cbb10abc0776ca697512349845a105c.tar.lz
re3-e3a261d29cbb10abc0776ca697512349845a105c.tar.xz
re3-e3a261d29cbb10abc0776ca697512349845a105c.tar.zst
re3-e3a261d29cbb10abc0776ca697512349845a105c.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script4.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/control/Script4.cpp b/src/control/Script4.cpp
index fa9a9d6a..3c4860f7 100644
--- a/src/control/Script4.cpp
+++ b/src/control/Script4.cpp
@@ -792,20 +792,20 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
}else{
pPed->m_pMyVehicle->RemovePassenger(pPed);
}
- if (pPed->m_vehEnterType) {
+ if (pPed->m_vehDoor) {
if (pPed->GetPedState() == PED_EXIT_CAR || pPed->GetPedState() == PED_DRAG_FROM_CAR) {
uint8 flags = 0;
if (pPed->m_pMyVehicle->IsBike()) {
- if (pPed->m_vehEnterType == CAR_DOOR_LF ||
- pPed->m_vehEnterType == CAR_DOOR_RF ||
- pPed->m_vehEnterType == CAR_WINDSCREEN)
+ if (pPed->m_vehDoor == CAR_DOOR_LF ||
+ pPed->m_vehDoor == CAR_DOOR_RF ||
+ pPed->m_vehDoor == CAR_WINDSCREEN)
flags = CAR_DOOR_FLAG_LF | CAR_DOOR_FLAG_RF;
- else if (pPed->m_vehEnterType == CAR_DOOR_LR ||
- pPed->m_vehEnterType == CAR_DOOR_RR)
+ else if (pPed->m_vehDoor == CAR_DOOR_LR ||
+ pPed->m_vehDoor == CAR_DOOR_RR)
flags = CAR_DOOR_FLAG_LR | CAR_DOOR_FLAG_RR;
}
else {
- switch (pPed->m_vehEnterType) {
+ switch (pPed->m_vehDoor) {
case CAR_DOOR_LF:
flags = pPed->m_pMyVehicle->m_nNumMaxPassengers != 0 ? CAR_DOOR_FLAG_LF : CAR_DOOR_FLAG_LF | CAR_DOOR_FLAG_LR;
break;
@@ -821,7 +821,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
}
}
pPed->m_pMyVehicle->m_nGettingOutFlags &= ~flags;
- pPed->m_pMyVehicle->ProcessOpenDoor(pPed->m_vehEnterType, NUM_STD_ANIMS, 0.0f);
+ pPed->m_pMyVehicle->ProcessOpenDoor(pPed->m_vehDoor, NUM_STD_ANIMS, 0.0f);
}
}
}