diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2021-01-13 21:17:53 +0100 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2021-01-13 21:17:53 +0100 |
commit | 8baa104453db38734a3eb9e9ff511389d0e72506 (patch) | |
tree | fadc7c4d71f54a2c6a2add1efb1b741b6f9775d5 /src/control/Script4.cpp | |
parent | Revert "Merge branch 'lcs' of https://github.com/GTAmodding/re3 into lcs" (diff) | |
download | re3-8baa104453db38734a3eb9e9ff511389d0e72506.tar re3-8baa104453db38734a3eb9e9ff511389d0e72506.tar.gz re3-8baa104453db38734a3eb9e9ff511389d0e72506.tar.bz2 re3-8baa104453db38734a3eb9e9ff511389d0e72506.tar.lz re3-8baa104453db38734a3eb9e9ff511389d0e72506.tar.xz re3-8baa104453db38734a3eb9e9ff511389d0e72506.tar.zst re3-8baa104453db38734a3eb9e9ff511389d0e72506.zip |
Diffstat (limited to 'src/control/Script4.cpp')
-rw-r--r-- | src/control/Script4.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/control/Script4.cpp b/src/control/Script4.cpp index d7e1d083..12eb179c 100644 --- a/src/control/Script4.cpp +++ b/src/control/Script4.cpp @@ -785,20 +785,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; @@ -814,7 +814,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); } } } |