aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-09-26 00:07:31 +0300
committerEugene Sandulenko2013-09-26 00:08:13 +0300
commit008eb251df09e569781d6dcc28a273147bbd590a (patch)
treedc1df15f348f917b2d6549aea8b9132afaaba9bd /engines
parent036c9fd6a9fc4218b9d21e7e5d1ec6964aca3b37 (diff)
downloadscummvm-rg350-008eb251df09e569781d6dcc28a273147bbd590a.tar.gz
scummvm-rg350-008eb251df09e569781d6dcc28a273147bbd590a.tar.bz2
scummvm-rg350-008eb251df09e569781d6dcc28a273147bbd590a.zip
FULLPIPE: Started implementation of MctlCompound::initMovGraph2()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/motion.cpp24
1 files changed, 23 insertions, 1 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 42aae55361..b63267c572 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -87,7 +87,29 @@ int MctlCompound::removeObject(StaticANIObject *obj) {
}
void MctlCompound::initMovGraph2() {
- warning("STUB: MctlCompound::initMovGraph2()");
+#if 0
+ if (_objtype != kObjTypeMctlCompound)
+ return;
+
+ for (uint i = 0; i < _motionControllers.size(); i++) {
+ if (_motionControllers[i]->_motionControllerObj->_objtype != kObjTypeMovGraph)
+ continue;
+
+ MovGraph *gr = (MovGraph *)_motionControllers[i]->_motionControllerObj;
+
+ CMovGraph2 *newgr = new MovGraph2();
+
+ newgr->_links.push_back(gr->_links);
+ newgr->_nodes.push_back(gr->_nodes);
+
+ gr->_links.clear();
+ gr->_nodes.clear();
+
+ delete gr;
+
+ _motionControllers[i]->_motionControllerObj = newgr;
+ }
+#endif
}
void MctlCompound::freeItems() {