mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-14 22:04:09 +00:00
CCivilianPed done & restore peds running to phone
This commit is contained in:
parent
a7d0404c89
commit
680fe0f7e6
11 changed files with 590 additions and 79 deletions
|
@ -72,7 +72,7 @@ CPhoneInfo::Load(uint8 *buf, uint32 size)
|
|||
INITSAVEBUF
|
||||
m_nMax = ReadSaveBuf<int32>(buf);
|
||||
m_nNum = ReadSaveBuf<int32>(buf);
|
||||
for (int i = 0; i < 50; i++) {
|
||||
for (int i = 0; i < NUMPHONES; i++) {
|
||||
m_aPhones[i] = ReadSaveBuf<CPhone>(buf);
|
||||
// It's saved as building pool index in save file, convert it to true entity
|
||||
if (m_aPhones[i].m_pEntity) {
|
||||
|
@ -174,7 +174,7 @@ CPhoneInfo::Save(uint8 *buf, uint32 *size)
|
|||
INITSAVEBUF
|
||||
WriteSaveBuf(buf, m_nMax);
|
||||
WriteSaveBuf(buf, m_nNum);
|
||||
for(int phoneId = 0; phoneId < 50; phoneId++) {
|
||||
for(int phoneId = 0; phoneId < NUMPHONES; phoneId++) {
|
||||
CPhone* phone = WriteSaveBuf(buf, m_aPhones[phoneId]);
|
||||
|
||||
// Convert entity pointer to building pool index while saving
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue