summaryrefslogtreecommitdiff
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
parentc21061a1998772ed9cde2e5f473966c5efd46cf4 (diff)
parent8e0b132f43b0ac952255bf85b0d1e22e3879d694 (diff)
Merge pull request #547 from Nick007J/master
a few bugfixes
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();