From 3ca0f88e1f1539251cb2955cdb9eb532d105829f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 25 May 2014 09:00:44 +0300 Subject: FULLPIPE: Fix MovGraph::calcMovItems() --- engines/fullpipe/motion.cpp | 12 ++++++------ engines/fullpipe/motion.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'engines') diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index af615cd95a..b4abe60a36 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -1176,7 +1176,7 @@ void MovGraph::shuffleTree(MovGraphLink *lnk, MovGraphLink *lnk2, Common::Array< } } -Common::Array *MovGraph::getBboxes(MovArr *movarr1, MovArr *movarr2, int *listCount) { +Common::Array *MovGraph::calcMovItems(MovArr *movarr1, MovArr *movarr2, int *listCount) { Common::Array tempObList1; Common::Array tempObList2; @@ -1189,12 +1189,12 @@ Common::Array *MovGraph::getBboxes(MovArr *movarr1, MovArr *mova *listCount = tempObList2.size(); - Common::Array *res = new Common::Array; + Common::Array *res = new Common::Array; for (int i = 0; i < *listCount; i++) { - Common::Rect *r = new Common::Rect; + MovItem *r = new MovItem; - calcBbox(r, tempObList2[i], movarr1, movarr2); + genMovItem(r, tempObList2[i], movarr1, movarr2); delete tempObList2[i]; } @@ -1204,8 +1204,8 @@ Common::Array *MovGraph::getBboxes(MovArr *movarr1, MovArr *mova return res; } -void MovGraph::calcBbox(Common::Rect *rect, MovGraphLink *grlink, MovArr *movarr1, MovArr *movarr2) { - warning("STUB: MovGraph::calcBbox()"); +void MovGraph::genMovItem(MovItem *movitem, MovGraphLink *grlink, MovArr *movarr1, MovArr *movarr2) { + warning("STUB: MovGraph::genMovItem()"); } bool MovGraph::calcChunk(int idx, int x, int y, MovArr *arr, int a6) { diff --git a/engines/fullpipe/motion.h b/engines/fullpipe/motion.h index 3aa07c143e..2765cc3118 100644 --- a/engines/fullpipe/motion.h +++ b/engines/fullpipe/motion.h @@ -371,8 +371,8 @@ public: int getItemIndexByStaticAni(StaticANIObject *ani); Common::Array *genMovArr(int x, int y, int *arrSize, int flag1, int flag2); void shuffleTree(MovGraphLink *lnk, MovGraphLink *lnk2, Common::Array &tempObList1, Common::Array &tempObList2); - Common::Array *getBboxes(MovArr *movarr1, MovArr *movarr2, int *listCount); - void calcBbox(Common::Rect *rect, MovGraphLink *grlink, MovArr *movarr1, MovArr *movarr2); + Common::Array *calcMovItems(MovArr *movarr1, MovArr *movarr2, int *listCount); + void genMovItem(MovItem *movitem, MovGraphLink *grlink, MovArr *movarr1, MovArr *movarr2); bool calcChunk(int idx, int x, int y, MovArr *arr, int a6); MessageQueue *sub1(StaticANIObject *ani, int x, int y, int a5, int x1, int y1, int a8, int a9); MessageQueue *fillMGMinfo(StaticANIObject *ani, MovArr *movarr, int staticsId); -- cgit v1.2.3