From 008eb251df09e569781d6dcc28a273147bbd590a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 26 Sep 2013 00:07:31 +0300 Subject: FULLPIPE: Started implementation of MctlCompound::initMovGraph2() --- engines/fullpipe/motion.cpp | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'engines') 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() { -- cgit v1.2.3