summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-20 23:43:13 +0200
committeraap <aap@papnet.eu>2020-08-20 23:44:40 +0200
commita6fe606ce687b67c238f8671cf2dda5c840654c8 (patch)
treed1e1508a0b016e118b7d357e980262f1aa1e63f1 /src/peds/Ped.cpp
parentMerge pull request #693 from majesticCoding/miami (diff)
downloadre3-a6fe606ce687b67c238f8671cf2dda5c840654c8.tar
re3-a6fe606ce687b67c238f8671cf2dda5c840654c8.tar.gz
re3-a6fe606ce687b67c238f8671cf2dda5c840654c8.tar.bz2
re3-a6fe606ce687b67c238f8671cf2dda5c840654c8.tar.lz
re3-a6fe606ce687b67c238f8671cf2dda5c840654c8.tar.xz
re3-a6fe606ce687b67c238f8671cf2dda5c840654c8.tar.zst
re3-a6fe606ce687b67c238f8671cf2dda5c840654c8.zip
Diffstat (limited to '')
-rw-r--r--src/peds/Ped.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 165436b5..390c3ccd 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -3001,6 +3001,22 @@ CPed::CanBeDeleted(void)
}
}
+//--MIAMI: done
+bool
+CPed::CanBeDeletedEvenInVehicle(void)
+{
+ switch (CharCreatedBy) {
+ case RANDOM_CHAR:
+ return true;
+ case MISSION_CHAR:
+ return false;
+ case TODO_CHAR:
+ return false;
+ default:
+ return true;
+ }
+}
+
// --MIAMI: Done
bool
CPed::CanPedDriveOff(void)