mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-23 18:24:59 +00:00
FULLPIPE: Implement Movement::countPhasesWithFlag()
This commit is contained in:
parent
8b78fb5642
commit
fb234a2d0c
@ -1529,9 +1529,22 @@ int Movement::calcDuration() {
|
||||
}
|
||||
|
||||
int Movement::countPhasesWithFlag(int maxidx, int flag) {
|
||||
warning("STUB: Movement::countPhasesWithFlag()");
|
||||
int res = 0;
|
||||
int sz;
|
||||
|
||||
return 0;
|
||||
if (_currMovement)
|
||||
sz = _currMovement->_dynamicPhases.size();
|
||||
else
|
||||
sz = _dynamicPhases.size();
|
||||
|
||||
if (maxidx < 0)
|
||||
maxidx = sz;
|
||||
|
||||
for (int i = 0; i < maxidx && i < sz; i++)
|
||||
if (getDynamicPhaseByIndex(i)->_dynFlags & flag)
|
||||
res++;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
void Movement::setDynamicPhaseIndex(int index) {
|
||||
|
Loading…
Reference in New Issue
Block a user