summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-11-02 13:54:42 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-11-02 13:54:42 +0100
commitbae6c242090ec2a40fab2b58a420892c3b2c7c20 (patch)
tree26dae14ed3cfcf3d6d26d37dfbb2268f19dea621 /src
parentfinished script and replay (diff)
downloadre3-bae6c242090ec2a40fab2b58a420892c3b2c7c20.tar
re3-bae6c242090ec2a40fab2b58a420892c3b2c7c20.tar.gz
re3-bae6c242090ec2a40fab2b58a420892c3b2c7c20.tar.bz2
re3-bae6c242090ec2a40fab2b58a420892c3b2c7c20.tar.lz
re3-bae6c242090ec2a40fab2b58a420892c3b2c7c20.tar.xz
re3-bae6c242090ec2a40fab2b58a420892c3b2c7c20.tar.zst
re3-bae6c242090ec2a40fab2b58a420892c3b2c7c20.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/Script.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 7c6082c8..f9935e21 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -9115,12 +9115,16 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
switch (pPed->m_vehEnterType) {
case CAR_DOOR_LF:
flags = pPed->m_pMyVehicle->m_nNumMaxPassengers != 0 ? CAR_DOOR_FLAG_LF : CAR_DOOR_FLAG_LF | CAR_DOOR_FLAG_LR;
+ break;
case CAR_DOOR_LR:
flags = pPed->m_pMyVehicle->m_nNumMaxPassengers != 0 ? CAR_DOOR_FLAG_RF : CAR_DOOR_FLAG_LF | CAR_DOOR_FLAG_LR;
+ break;
case CAR_DOOR_RF:
flags = CAR_DOOR_FLAG_RF;
+ break;
case CAR_DOOR_RR:
flags = CAR_DOOR_FLAG_RR;
+ break;
}
}
pPed->m_pMyVehicle->m_nGettingOutFlags &= ~flags;