summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-14 13:01:24 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-14 13:01:24 +0200
commit9d4d83db0d9b9bd2921972a030a0c53566688fbb (patch)
tree6e25a7d88c3afb2afb07a4025da316d2b3d0c945 /src/peds/Ped.cpp
parentfixed skinned cutscene head (diff)
downloadre3-9d4d83db0d9b9bd2921972a030a0c53566688fbb.tar
re3-9d4d83db0d9b9bd2921972a030a0c53566688fbb.tar.gz
re3-9d4d83db0d9b9bd2921972a030a0c53566688fbb.tar.bz2
re3-9d4d83db0d9b9bd2921972a030a0c53566688fbb.tar.lz
re3-9d4d83db0d9b9bd2921972a030a0c53566688fbb.tar.xz
re3-9d4d83db0d9b9bd2921972a030a0c53566688fbb.tar.zst
re3-9d4d83db0d9b9bd2921972a030a0c53566688fbb.zip
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();