mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-08 01:44:08 +00:00
CPopulation 1
This commit is contained in:
parent
04eac2a06c
commit
ff92b822b6
14 changed files with 442 additions and 112 deletions
|
@ -819,7 +819,7 @@ bool CReplay::PlayBackThisFrameInterpolation(CAddressInReplayBuffer *buffer, flo
|
|||
CStreaming::RequestModel(ph->mi, 0);
|
||||
}
|
||||
else {
|
||||
CPed* new_p = new(ph->index << 8) CCivilianPed(ph->pedtype, ph->mi);
|
||||
CPed* new_p = new(ph->index << 8) CCivilianPed((ePedType)ph->pedtype, ph->mi);
|
||||
new_p->m_status = STATUS_PLAYER_PLAYBACKFROMBUFFER;
|
||||
new_p->GetMatrix().SetUnity();
|
||||
CWorld::Add(new_p);
|
||||
|
@ -1169,7 +1169,7 @@ void CReplay::RestoreStuffFromMem(void)
|
|||
ped->m_pVehicleAnim = 0;
|
||||
ped->m_audioEntityId = DMAudio.CreateEntity(AUDIOTYPE_PHYSICAL, ped);
|
||||
DMAudio.SetEntityStatus(ped->m_audioEntityId, true);
|
||||
CPopulation::UpdatePedCount(ped->m_nPedType, false);
|
||||
CPopulation::UpdatePedCount((ePedType)ped->m_nPedType, false);
|
||||
if (ped->m_wepModelID >= 0)
|
||||
ped->AddWeaponModel(ped->m_wepModelID);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue