mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-29 15:03:43 +00:00
small thing
This commit is contained in:
parent
b4b9f9601b
commit
29b76fc4f5
1 changed files with 17 additions and 0 deletions
|
@ -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++){
|
||||
|
|
Loading…
Reference in a new issue