summaryrefslogtreecommitdiff
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-14 14:01:24 +0300
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-14 14:01:24 +0300
commit9d4d83db0d9b9bd2921972a030a0c53566688fbb (patch)
tree6e25a7d88c3afb2afb07a4025da316d2b3d0c945 /src/peds/Ped.cpp
parent9b162554ca7c4368781c22df9df4fd7ab2045a43 (diff)
some fixes
Diffstat (limited to 'src/peds/Ped.cpp')
-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();