[Scummvm-cvs-logs] scummvm master -> 3ceaafd1f9f52d0156beeb579564071071d8e2a3
sev-
sev at scummvm.org
Sat May 17 07:04:00 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3ceaafd1f9 FULLPIPE: Started implementation of movGraphCallback()
Commit: 3ceaafd1f9f52d0156beeb579564071071d8e2a3
https://github.com/scummvm/scummvm/commit/3ceaafd1f9f52d0156beeb579564071071d8e2a3
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2014-05-17T08:02:58+03:00
Commit Message:
FULLPIPE: Started implementation of movGraphCallback()
Changed paths:
engines/fullpipe/motion.cpp
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 1712c88..ccf5fa1 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);
More information about the Scummvm-git-logs
mailing list