FULLPIPE: Implement sceneHandler04_sub1()

This commit is contained in:
Eugene Sandulenko 2013-11-23 21:00:58 -05:00
parent 14cb73789e
commit 6a2ee82699
4 changed files with 32 additions and 1 deletions

View file

@ -185,6 +185,19 @@ bool BehaviorManager::setBehaviorEnabled(StaticANIObject *obj, int aniId, int qu
return true;
}
void BehaviorManager::setFlagByStaticAniObject(StaticANIObject *ani, int flag) {
for (uint i = 0; i < _behaviors.size(); i++) {
BehaviorInfo *beh = _behaviors[i];
if (ani == beh->_ani) {
if (flag)
beh->_flags &= 0xfe;
else
beh->_flags |= 1;
}
}
}
void BehaviorInfo::clear() {
_ani = 0;
_staticsId = 0;