FULLPIPE: Implement BehaviorManager::setBehaviorEnabled()
This commit is contained in:
parent
2bf60ea308
commit
e7551f14fd
1 changed files with 9 additions and 1 deletions
|
@ -180,7 +180,15 @@ void BehaviorManager::updateStaticAniBehavior(StaticANIObject *ani, int delay, B
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BehaviorManager::setBehaviorEnabled(StaticANIObject *obj, int aniId, int quId, int flag) {
|
bool BehaviorManager::setBehaviorEnabled(StaticANIObject *obj, int aniId, int quId, int flag) {
|
||||||
warning("STUB: BehaviorManager::setBehaviorEnabled()");
|
BehaviorEntryInfo *entry = getBehaviorEntryInfoByMessageQueueDataId(obj, aniId, quId);
|
||||||
|
|
||||||
|
if (entry) {
|
||||||
|
if (flag)
|
||||||
|
entry->_flags &= 0xFFFFFFFE;
|
||||||
|
else
|
||||||
|
entry->_flags |= 1;
|
||||||
|
} else
|
||||||
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue