Skip to content

Commit

Permalink
FULLPIPE: Implement MGM::countPhases()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Apr 26, 2014
1 parent 49b6498 commit 8d15423
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions engines/fullpipe/motion.cpp
Expand Up @@ -2169,10 +2169,22 @@ MessageQueue *MGM::genMovement(MGMInfo *mgminfo) {
return mq;
}

int MGM::countPhases(int idx, int subIdx, int subOffset, int flag) {
warning("STUB: MGM::countPhases");
int MGM::countPhases(int idx, int subIdx, int endIdx, int flag) {
int res = 0;

return 0;
if (endIdx < 0)
return 0;

while (subIdx != endIdx) {
if (subIdx < 0)
break;

res += _items[idx]->subItems[subIdx + endIdx * _items[idx]->statics.size()]->movement->countPhasesWithFlag(-1, flag);

subIdx = _items[idx]->subItems[subIdx + 6 * endIdx * _items[idx]->statics.size()]->staticsIndex;
}

return res;
}
void MGM::updateAnimStatics(StaticANIObject *ani, int staticsId) {
if (getItemIndexById(ani->_id) == -1)
Expand Down

0 comments on commit 8d15423

Please sign in to comment.