summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-07-29 11:17:53 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-07-29 11:17:53 +0200
commit1803dcc873df329282adab46e1d42baa4b6ee45b (patch)
treed78ac699caa9124338701a5e413b70379204c8a3 /src/peds
parentNULL->nil (diff)
downloadre3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.gz
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.bz2
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.lz
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.xz
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.zst
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp14
-rw-r--r--src/peds/Ped.h3
2 files changed, 17 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 2fe2ce02..f03904fe 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;
@@ -2672,6 +2679,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
}
void
diff --git a/src/peds/Ped.h b/src/peds/Ped.h
index 457036d3..d0a2abf0 100644
--- a/src/peds/Ped.h
+++ b/src/peds/Ped.h
@@ -357,6 +357,9 @@ class CVehicle;
class CPed : public CPhysical
{
public:
+#if 1
+ class CCutsceneShadow *m_pRTShadow;
+#endif
// 0x128
CStoredCollPoly m_collPoly;
float m_fCollisionSpeed;