summaryrefslogtreecommitdiffstats
path: root/src/core/World.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-12-17 00:47:48 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2020-12-17 00:47:48 +0100
commitdd579c40800856a427274f7491bb7bcc00df9e00 (patch)
treec165994c94bd84ec83e3aa7e04063858d18c424c /src/core/World.cpp
parentFix placement of some script functions (diff)
downloadre3-dd579c40800856a427274f7491bb7bcc00df9e00.tar
re3-dd579c40800856a427274f7491bb7bcc00df9e00.tar.gz
re3-dd579c40800856a427274f7491bb7bcc00df9e00.tar.bz2
re3-dd579c40800856a427274f7491bb7bcc00df9e00.tar.lz
re3-dd579c40800856a427274f7491bb7bcc00df9e00.tar.xz
re3-dd579c40800856a427274f7491bb7bcc00df9e00.tar.zst
re3-dd579c40800856a427274f7491bb7bcc00df9e00.zip
Diffstat (limited to 'src/core/World.cpp')
-rw-r--r--src/core/World.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp
index da565f22..a7531c83 100644
--- a/src/core/World.cpp
+++ b/src/core/World.cpp
@@ -1955,12 +1955,11 @@ CWorld::Process(void)
} else {
for(CPtrNode *node = ms_listMovingEntityPtrs.first; node; node = node->next) {
CEntity *movingEnt = (CEntity *)node->item;
-#ifdef SQUEEZE_PERFORMANCE
- if (movingEnt->bRemoveFromWorld) {
- RemoveEntityInsteadOfProcessingIt(movingEnt);
- } else
-#endif
+#ifdef FIX_BUGS // from VC
+ if(!movingEnt->bRemoveFromWorld && movingEnt->m_rwObject && RwObjectGetType(movingEnt->m_rwObject) == rpCLUMP &&
+#else
if(movingEnt->m_rwObject && RwObjectGetType(movingEnt->m_rwObject) == rpCLUMP &&
+#endif
RpAnimBlendClumpGetFirstAssociation(movingEnt->GetClump())) {
RpAnimBlendClumpUpdateAnimations(movingEnt->GetClump(),
0.02f * (movingEnt->IsObject()