[Scummvm-cvs-logs] scummvm master -> 2bf60ea3081f9e3756ca4c3a893abf9103fd8f98
sev-
sev at scummvm.org
Mon Dec 30 15:59:28 CET 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2bf60ea308 FULLPIPE: Implement BehaviorManager::getBehaviorEntryInfoByMessageQueueDataId()
Commit: 2bf60ea3081f9e3756ca4c3a893abf9103fd8f98
https://github.com/scummvm/scummvm/commit/2bf60ea3081f9e3756ca4c3a893abf9103fd8f98
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2013-12-30T06:56:06-08:00
Commit Message:
FULLPIPE: Implement BehaviorManager::getBehaviorEntryInfoByMessageQueueDataId()
Changed paths:
engines/fullpipe/behavior.cpp
diff --git a/engines/fullpipe/behavior.cpp b/engines/fullpipe/behavior.cpp
index abea906..ccca012 100644
--- a/engines/fullpipe/behavior.cpp
+++ b/engines/fullpipe/behavior.cpp
@@ -199,7 +199,18 @@ void BehaviorManager::setFlagByStaticAniObject(StaticANIObject *ani, int flag) {
}
BehaviorEntryInfo *BehaviorManager::getBehaviorEntryInfoByMessageQueueDataId(StaticANIObject *ani, int id1, int id2) {
- warning("STUB: getBehaviorEntryInfoByMessageQueueDataId()");
+ for (uint i = 0; i < _behaviors.size(); i++) {
+ if (_behaviors[i]->_ani == ani) {
+ for (uint j = 0; j < _behaviors[i]->_bheItems.size(); j++) {
+ if (_behaviors[i]->_bheItems[j]->_staticsId == id1) {
+ for (uint k = 0; k < _behaviors[i]->_bheItems[j]->_itemsCount; k++) {
+ if (_behaviors[i]->_bheItems[j]->_items[k]->_messageQueue->_dataId == id2)
+ return _behaviors[i]->_bheItems[j]->_items[k];
+ }
+ }
+ }
+ }
+ }
return 0;
}
More information about the Scummvm-git-logs
mailing list