mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
FULLPIPE: Implement MGM::countPhases()
This commit is contained in:
parent
49b6498d22
commit
8d15423f42
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user