1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 17:30:00 +00:00

small thing

This commit is contained in:
Nikolay Korolev 2021-01-01 22:57:17 +03:00
parent b4b9f9601b
commit 29b76fc4f5

View file

@ -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++){