diff options
| author | Eugene Sandulenko | 2013-09-18 22:30:06 +0400 | 
|---|---|---|
| committer | Eugene Sandulenko | 2013-09-19 10:15:11 +0400 | 
| commit | 38a0c8556f24bec7590c4d846640eaf0170f3fa8 (patch) | |
| tree | c81b4d87b73cf008b4ed6c20aa084e920807dec5 | |
| parent | 3dbab52fc564d82bd5eef68d0aaadcc6ad48bfbe (diff) | |
| download | scummvm-rg350-38a0c8556f24bec7590c4d846640eaf0170f3fa8.tar.gz scummvm-rg350-38a0c8556f24bec7590c4d846640eaf0170f3fa8.tar.bz2 scummvm-rg350-38a0c8556f24bec7590c4d846640eaf0170f3fa8.zip | |
FULLPIPE: Implement startWalkTo()
| -rw-r--r-- | engines/fullpipe/motion.cpp | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 2332994540..337c1817dd 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -29,6 +29,7 @@  #include "fullpipe/objects.h"  #include "fullpipe/motion.h"  #include "fullpipe/messages.h" +#include "fullpipe/gameloader.h"  namespace Fullpipe { @@ -285,7 +286,10 @@ void ReactPolygonal::createRegion() {  }  int startWalkTo(int objId, int objKey, int x, int y, int a5) { -	warning("STUB: startWalkTo(%d, %d, %d, %d, %d)", objId, objKey, x, y, a5); +	MctlCompound *mc = getSc2MctlCompoundBySceneId(g_fullpipe->_currentScene->_sceneId); + +	if (mc) +		return (mc->method34(g_fullpipe->_currentScene->getStaticANIObject1ById(objId, objKey), x, y, a5, 0) != 0);  	return 0;  } | 
