diff options
author | Eugene Sandulenko | 2013-11-16 00:44:42 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-11-16 00:45:05 +0200 |
commit | 6ee9433816527e497b4bf1655c2a5375a53306c1 (patch) | |
tree | 25e9893d3c31b9edb6ab6b7b9a90ce8b6a0bbe95 /engines/fullpipe/motion.cpp | |
parent | ee7b4819ca0a38d6108e84feae9154458cbfbb6f (diff) | |
download | scummvm-rg350-6ee9433816527e497b4bf1655c2a5375a53306c1.tar.gz scummvm-rg350-6ee9433816527e497b4bf1655c2a5375a53306c1.tar.bz2 scummvm-rg350-6ee9433816527e497b4bf1655c2a5375a53306c1.zip |
FULLPIPE: MovGraph2::buildMovInfo1MessageQueue() implementation. Almost there
Diffstat (limited to 'engines/fullpipe/motion.cpp')
-rw-r--r-- | engines/fullpipe/motion.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 79bafb6ec2..dfb2f60777 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -672,10 +672,10 @@ MessageQueue *MovGraph2::buildMovInfo1MessageQueue(MovInfo1 *movInfo) { for (int i = 0; i < movInfo->_itemsCount - 1; i++) { if (movInfo->items[i + 1].subIndex != 10) { if (i >= movInfo->itemsCount - 2 || movInfo->items[i + 2].subIndex != 10) { - v17 = (char *)_items[1] + 16 * (movInfo->items[i + 1].subIndex + 8); + v12 = (char *)_items[1] + 16 * (movInfo->items[i + 1].subIndex + 8); movinfo.flags = 0; subidx = 8 * 93 * movInfo->field_0; - v15 = (MovGraph2Item *)(&v17[184 * movInfo->items[i].subIndex] + subidx); + v15 = (MovGraph2Item *)(&v12[184 * movInfo->items[i].subIndex] + subidx); } else { v12 = (char *)_items[1] + 16 * (movInfo->items[i + 1].subIndex + 4); movinfo.flags = 2; @@ -716,10 +716,10 @@ MessageQueue *MovGraph2::buildMovInfo1MessageQueue(MovInfo1 *movInfo) { mgminfo.flags = 0x7f; mgminfo.movementId = v15->_objectId; - v25 = (MessageQueue *)MGM_sub_445330((MGM *)&this->movGraph.mgm, &mgminfo); - mq->transferExCommands(v25); + MessageQueue *mq2 = (MessageQueue *)MGM_sub_445330((MGM *)&this->movGraph.mgm, &mgminfo); + mq->transferExCommands(mq2); - delete v25; + delete mq2; curX = movInfo->items[i + 1].x; curY = movInfo->items[i + 1].y; @@ -764,16 +764,16 @@ MessageQueue *MovGraph2::buildMovInfo1MessageQueue(MovInfo1 *movInfo) { } i++; // intentional - v36 = sub1(&movinfo); + MessageQueue *mq2 = sub1(&movinfo); - if (!v36) { + if (mq2) { delete mq; return 0; } - mq->transferExCommands(v36); + mq->transferExCommands(mq2); - delete v36; + delete mq2; curX = movinfo.pt2.x; curY = movinfo.pt2.y; |