summaryrefslogtreecommitdiffstats
path: root/src/entities/DummyObject.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-18 09:50:26 +0200
committeraap <aap@papnet.eu>2019-06-18 09:50:26 +0200
commit3b64bd1b4a5008b14b54edb257d4e8a5a8277c26 (patch)
treeca1ba1aef3b1c654f586d43b12dc27ea41c513b8 /src/entities/DummyObject.cpp
parentfixed anim bug (diff)
downloadre3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.tar
re3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.tar.gz
re3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.tar.bz2
re3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.tar.lz
re3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.tar.xz
re3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.tar.zst
re3-3b64bd1b4a5008b14b54edb257d4e8a5a8277c26.zip
Diffstat (limited to 'src/entities/DummyObject.cpp')
-rw-r--r--src/entities/DummyObject.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/entities/DummyObject.cpp b/src/entities/DummyObject.cpp
new file mode 100644
index 00000000..083ad6c6
--- /dev/null
+++ b/src/entities/DummyObject.cpp
@@ -0,0 +1,13 @@
+#include "common.h"
+#include "patcher.h"
+#include "DummyObject.h"
+#include "Pools.h"
+
+CDummyObject::CDummyObject(CObject *obj)
+{
+ SetModelIndexNoCreate(obj->GetModelIndex());
+ if(obj->m_rwObject)
+ AttachToRwObject(obj->m_rwObject);
+ obj->DetachFromRwObject();
+ m_level = obj->m_level;
+}