summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-01 20:57:17 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-01 20:57:17 +0100
commit29b76fc4f59fe6cba7f3cf553475ea5c634fa9a1 (patch)
tree4bcd62d5627987aac148869db6dd5b97b916d7c5 /src/control/Script.cpp
parentMerge branch 'miami' into lcs-dev (diff)
downloadre3-29b76fc4f59fe6cba7f3cf553475ea5c634fa9a1.tar
re3-29b76fc4f59fe6cba7f3cf553475ea5c634fa9a1.tar.gz
re3-29b76fc4f59fe6cba7f3cf553475ea5c634fa9a1.tar.bz2
re3-29b76fc4f59fe6cba7f3cf553475ea5c634fa9a1.tar.lz
re3-29b76fc4f59fe6cba7f3cf553475ea5c634fa9a1.tar.xz
re3-29b76fc4f59fe6cba7f3cf553475ea5c634fa9a1.tar.zst
re3-29b76fc4f59fe6cba7f3cf553475ea5c634fa9a1.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index c022cfe8..b03d8403 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -1673,6 +1673,23 @@ void CMissionCleanup::Init()
}
}
+static void SleepThisPed(cleanup_entity_struct* pCleanup, CPed* pPed)
+{
+ printf("*** SLEEPING PED %i %i\n", pCleanup->id, pPed->GetModelIndex());
+ if (!pPed->GetIsStatic())
+ pPed->RemoveFromMovingList();
+ pPed->bIsStaticWaitingForCollision = true;
+}
+
+static void WakeThisPed(cleanup_entity_struct* pCleanup, CPed* pPed)
+{
+ printf("*** WAKING UP PED %i %i\n", pCleanup->id, pPed->GetModelIndex());
+ pPed->bIsStaticWaitingForCollision = false;
+ if (!pPed->bIsStatic)
+ pPed->AddToMovingList();
+
+}
+
cleanup_entity_struct* CMissionCleanup::FindFree()
{
for (int i = 0; i < MAX_CLEANUP; i++){