FULLPIPE: Implement sceneHandler04_sub1()
This commit is contained in:
parent
14cb73789e
commit
6a2ee82699
4 changed files with 32 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue