mirror of
https://github.com/halpz/re3.git
synced 2025-07-23 07:59:45 +00:00
Peds, Hud, CFO 1/2, fixes - including zone names
This commit is contained in:
@ -620,6 +620,23 @@ CEntity::PruneReferences(void)
|
||||
}
|
||||
}
|
||||
|
||||
// Clean up the reference from *pent -> 'this'
|
||||
void
|
||||
CEntity::CleanUpOldReference(CEntity **pent)
|
||||
{
|
||||
CReference* ref, ** lastnextp;
|
||||
lastnextp = &m_pFirstReference;
|
||||
for (ref = m_pFirstReference; ref; ref = ref->next) {
|
||||
if (ref->pentity == pent) {
|
||||
*lastnextp = ref->next;
|
||||
ref->next = CReferences::pEmptyList;
|
||||
CReferences::pEmptyList = ref;
|
||||
break;
|
||||
}
|
||||
lastnextp = &ref->next;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
CEntity::UpdateRpHAnim(void)
|
||||
{
|
||||
|
@ -168,6 +168,7 @@ public:
|
||||
void RegisterReference(CEntity **pent);
|
||||
void ResolveReferences(void);
|
||||
void PruneReferences(void);
|
||||
void CleanUpOldReference(CEntity **pent);
|
||||
|
||||
#ifdef PED_SKIN
|
||||
void UpdateRpHAnim(void);
|
||||
|
Reference in New Issue
Block a user