diff options
author | aap <aap@papnet.eu> | 2020-08-07 10:18:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 10:18:35 +0200 |
commit | 40185161b83091e79455acf6fe82f070e26c6662 (patch) | |
tree | 87ae90e9dc46c746d0a4819286ce1b965c3f91fa /src/peds | |
parent | Merge pull request #668 from majesticCoding/miami (diff) | |
parent | Update CutsceneShadow.h (diff) | |
download | re3-40185161b83091e79455acf6fe82f070e26c6662.tar re3-40185161b83091e79455acf6fe82f070e26c6662.tar.gz re3-40185161b83091e79455acf6fe82f070e26c6662.tar.bz2 re3-40185161b83091e79455acf6fe82f070e26c6662.tar.lz re3-40185161b83091e79455acf6fe82f070e26c6662.tar.xz re3-40185161b83091e79455acf6fe82f070e26c6662.tar.zst re3-40185161b83091e79455acf6fe82f070e26c6662.zip |
Diffstat (limited to 'src/peds')
-rw-r--r-- | src/peds/Ped.cpp | 14 | ||||
-rw-r--r-- | src/peds/Ped.h | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 53c2b2c2..4e1c3c6d 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -63,6 +63,7 @@ #include "Debug.h" #include "GameLogic.h" #include "Bike.h" +#include "CutsceneShadow.h" #define CAN_SEE_ENTITY_ANGLE_THRESHOLD DEGTORAD(60.0f) @@ -146,6 +147,9 @@ void CPed::operator delete(void *p, int handle) { CPools::GetPedPool()->Delete(( // --MIAMI: Done CPed::~CPed(void) { +#if 1 + if ( m_pRTShadow ) delete m_pRTShadow; +#endif CWorld::Remove(this); if (m_attractor) GetPedAttractorManager()->DeRegisterPed(this, m_attractor); @@ -203,6 +207,9 @@ CPed::FlagToDestroyWhenNextProcessed(void) CPed::CPed(uint32 pedType) : m_pedIK(this) { +#if 1 + m_pRTShadow = NULL; +#endif m_type = ENTITY_TYPE_PED; bPedPhysics = true; bUseCollisionRecords = true; @@ -2788,6 +2795,13 @@ CPed::SetModelIndex(uint32 mi) if (IsClumpSkinned(GetClump())) // condition isn't there in VC UpdateRpHAnim(); #endif +#if 1 + if (!m_pRTShadow) + { + m_pRTShadow = new CCutsceneShadow; + m_pRTShadow->Create(m_rwObject, 10, 1, 1, 1); + } +#endif } // --MIAMI: Done diff --git a/src/peds/Ped.h b/src/peds/Ped.h index b3d2f71c..979eb29c 100644 --- a/src/peds/Ped.h +++ b/src/peds/Ped.h @@ -363,6 +363,9 @@ class CVehicle; class CPed : public CPhysical { public: +#if 1 + class CCutsceneShadow *m_pRTShadow; +#endif // 0x128 CStoredCollPoly m_collPoly; float m_fCollisionSpeed; |