summaryrefslogtreecommitdiffstats
path: root/src/entities/Entity.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-04 14:28:30 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-04 14:28:30 +0100
commit3b1400eaed86f2a89f85f6d9802505a0e2e88985 (patch)
treed4301151335e2ac6d346274499e17bf61e2ac44a /src/entities/Entity.cpp
parentcfo fix (diff)
downloadre3-3b1400eaed86f2a89f85f6d9802505a0e2e88985.tar
re3-3b1400eaed86f2a89f85f6d9802505a0e2e88985.tar.gz
re3-3b1400eaed86f2a89f85f6d9802505a0e2e88985.tar.bz2
re3-3b1400eaed86f2a89f85f6d9802505a0e2e88985.tar.lz
re3-3b1400eaed86f2a89f85f6d9802505a0e2e88985.tar.xz
re3-3b1400eaed86f2a89f85f6d9802505a0e2e88985.tar.zst
re3-3b1400eaed86f2a89f85f6d9802505a0e2e88985.zip
Diffstat (limited to 'src/entities/Entity.cpp')
-rw-r--r--src/entities/Entity.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp
index db004af3..4ef9e8e6 100644
--- a/src/entities/Entity.cpp
+++ b/src/entities/Entity.cpp
@@ -228,12 +228,8 @@ CEntity::GetBoundRadius(void)
void
CEntity::UpdateRwFrame(void)
{
- if(m_rwObject){
- if(RwObjectGetType(m_rwObject) == rpATOMIC)
- RwFrameUpdateObjects(RpAtomicGetFrame((RpAtomic*)m_rwObject));
- else if(RwObjectGetType(m_rwObject) == rpCLUMP)
- RwFrameUpdateObjects(RpClumpGetFrame((RpClump*)m_rwObject));
- }
+ if(m_rwObject)
+ RwFrameUpdateObjects(rwObjectGetParent(m_rwObject));
}
#ifdef PED_SKIN