mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 22:50:01 +00:00
reorder
This commit is contained in:
parent
29b76fc4f5
commit
bec8f6b86c
|
@ -1673,6 +1673,16 @@ void CMissionCleanup::Init()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cleanup_entity_struct* CMissionCleanup::FindFree()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < MAX_CLEANUP; i++){
|
||||||
|
if (m_sEntities[i].type == CLEANUP_UNUSED)
|
||||||
|
return &m_sEntities[i];
|
||||||
|
}
|
||||||
|
script_assert(0);
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
static void SleepThisPed(cleanup_entity_struct* pCleanup, CPed* pPed)
|
static void SleepThisPed(cleanup_entity_struct* pCleanup, CPed* pPed)
|
||||||
{
|
{
|
||||||
printf("*** SLEEPING PED %i %i\n", pCleanup->id, pPed->GetModelIndex());
|
printf("*** SLEEPING PED %i %i\n", pCleanup->id, pPed->GetModelIndex());
|
||||||
|
@ -1690,16 +1700,6 @@ static void WakeThisPed(cleanup_entity_struct* pCleanup, CPed* pPed)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup_entity_struct* CMissionCleanup::FindFree()
|
|
||||||
{
|
|
||||||
for (int i = 0; i < MAX_CLEANUP; i++){
|
|
||||||
if (m_sEntities[i].type == CLEANUP_UNUSED)
|
|
||||||
return &m_sEntities[i];
|
|
||||||
}
|
|
||||||
script_assert(0);
|
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CMissionCleanup::AddEntityToList(int32 id, uint8 type)
|
void CMissionCleanup::AddEntityToList(int32 id, uint8 type)
|
||||||
{
|
{
|
||||||
cleanup_entity_struct* pNew = FindFree();
|
cleanup_entity_struct* pNew = FindFree();
|
||||||
|
|
Loading…
Reference in a new issue