From 6a2ee82699d7467e2e698d5d1ce6a388f49bb883 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 23 Nov 2013 21:00:58 -0500 Subject: FULLPIPE: Implement sceneHandler04_sub1() --- engines/fullpipe/behavior.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'engines/fullpipe/behavior.cpp') diff --git a/engines/fullpipe/behavior.cpp b/engines/fullpipe/behavior.cpp index c7b526d2c1..c27f1082f5 100644 --- a/engines/fullpipe/behavior.cpp +++ b/engines/fullpipe/behavior.cpp @@ -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; -- cgit v1.2.3