diff options
author | Eugene Sandulenko | 2014-05-17 08:02:37 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2014-05-17 08:02:58 +0300 |
commit | 3ceaafd1f9f52d0156beeb579564071071d8e2a3 (patch) | |
tree | 98d73508ed2094cc3dad53a1d00c539063488cf6 /engines/fullpipe/motion.cpp | |
parent | e0b82f0ced3ca965c490cea8d0bc060de7a8c4ba (diff) | |
download | scummvm-rg350-3ceaafd1f9f52d0156beeb579564071071d8e2a3.tar.gz scummvm-rg350-3ceaafd1f9f52d0156beeb579564071071d8e2a3.tar.bz2 scummvm-rg350-3ceaafd1f9f52d0156beeb579564071071d8e2a3.zip |
FULLPIPE: Started implementation of movGraphCallback()
Diffstat (limited to 'engines/fullpipe/motion.cpp')
-rw-r--r-- | engines/fullpipe/motion.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 1712c88684..ccf5fa1483 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -529,14 +529,27 @@ void MovGraphItem::free() { int MovGraph_messageHandler(ExCommand *cmd); -MovArr *MovGraphCallback(StaticANIObject *ani, MovItem *item, signed int counter) { - warning("STUB: MovgraphCallback"); +MovArr *movGraphCallback(StaticANIObject *ani, MovItem *item, signed int counter) { +#if 0 +MovArr *movGraphCallback(StaticANIObject *ani, Common:Array<MovItem *> items, int itemidx, signed int counter) { + int residx = itemidx; + + while (counter > 1) { + if (items[itemidx]._mfield_4 > items[itemidx + 1]._mfield_4) + residx = itemidx; + + counter--; + itemidx++; + } + + return items[residx].movarr; +#endif return 0; } MovGraph::MovGraph() { - _callback1 = MovGraphCallback; + _callback1 = movGraphCallback; _field_44 = 0; insertMessageHandler(MovGraph_messageHandler, getMessageHandlersCount() - 1, 129); |