summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-14 14:39:23 +0200
committerGitHub <noreply@github.com>2020-05-14 14:39:23 +0200
commit704a5c158f110c14809c62e3cd35adf7029d2542 (patch)
tree492e7a68919f02d59169fbfc3d02ba2efede57d4 /src/peds
parentfixed RotateTorso (diff)
parentit works differently (diff)
downloadre3-704a5c158f110c14809c62e3cd35adf7029d2542.tar
re3-704a5c158f110c14809c62e3cd35adf7029d2542.tar.gz
re3-704a5c158f110c14809c62e3cd35adf7029d2542.tar.bz2
re3-704a5c158f110c14809c62e3cd35adf7029d2542.tar.lz
re3-704a5c158f110c14809c62e3cd35adf7029d2542.tar.xz
re3-704a5c158f110c14809c62e3cd35adf7029d2542.tar.zst
re3-704a5c158f110c14809c62e3cd35adf7029d2542.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index d261385a..fd8fd540 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -16166,7 +16166,11 @@ CPed::SeekCar(void)
}
if (dest.x == 0.0f && dest.y == 0.0f) {
+#ifdef FIX_BUGS
+ if ((!IsPlayer() && CharCreatedBy != MISSION_CHAR) || vehToSeek->VehicleCreatedBy != MISSION_VEHICLE || vehToSeek->pDriver || !vehToSeek->CanPedOpenLocks(this)) {
+#else
if ((!IsPlayer() && CharCreatedBy != MISSION_CHAR) || vehToSeek->VehicleCreatedBy != MISSION_VEHICLE || vehToSeek->pDriver) {
+#endif
RestorePreviousState();
if (IsPlayer()) {
ClearObjective();