aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-30 22:21:52 +0200
committerEugene Sandulenko2013-12-30 22:21:52 +0200
commite7551f14fd4b5f3f3d59c84ca5f1cac4e3ac888f (patch)
treee3e8af2a9dc688a208f62f65e9c69806af899b40
parent2bf60ea3081f9e3756ca4c3a893abf9103fd8f98 (diff)
downloadscummvm-rg350-e7551f14fd4b5f3f3d59c84ca5f1cac4e3ac888f.tar.gz
scummvm-rg350-e7551f14fd4b5f3f3d59c84ca5f1cac4e3ac888f.tar.bz2
scummvm-rg350-e7551f14fd4b5f3f3d59c84ca5f1cac4e3ac888f.zip
FULLPIPE: Implement BehaviorManager::setBehaviorEnabled()
-rw-r--r--engines/fullpipe/behavior.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/fullpipe/behavior.cpp b/engines/fullpipe/behavior.cpp
index ccca012976..208df90c75 100644
--- a/engines/fullpipe/behavior.cpp
+++ b/engines/fullpipe/behavior.cpp
@@ -180,7 +180,15 @@ void BehaviorManager::updateStaticAniBehavior(StaticANIObject *ani, int delay, B
}
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;
}