aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/motion.cpp19
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);