diff options
author | Eugene Sandulenko | 2014-01-29 23:53:19 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-29 23:54:11 +0200 |
commit | 1bf3f9aacffa3885f1ebfa0a614df1244823a82a (patch) | |
tree | c37ac0a172b2aeadf39955c62753b80c85b5dbac /engines | |
parent | 30123a51d085e84a08e188cbabe4e70008278309 (diff) | |
download | scummvm-rg350-1bf3f9aacffa3885f1ebfa0a614df1244823a82a.tar.gz scummvm-rg350-1bf3f9aacffa3885f1ebfa0a614df1244823a82a.tar.bz2 scummvm-rg350-1bf3f9aacffa3885f1ebfa0a614df1244823a82a.zip |
FULLPIPE: Implement MessageQueue::activateExCommandsByKind()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/messages.cpp | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp index 6906c681ee..55b5daaeaa 100644 --- a/engines/fullpipe/messages.cpp +++ b/engines/fullpipe/messages.cpp @@ -610,6 +610,23 @@ void MessageQueue::changeParam28ForObjectId(int objId, int oldParam28, int newPa } } +int MessageQueue::activateExCommandsByKind(int kind) { + int res = 0; + + for (uint i = 0; i < getCount(); i++) { + ExCommand *ex = getExCommandByIndex(i); + + if (ex->_messageKind == kind) { + ex->_messageKind = 0; + ex->_excFlags |= 1; + + res++; + } + } + + return res; +} + MessageQueue *GlobalMessageQueueList::getMessageQueueById(int id) { for (Common::Array<MessageQueue *>::iterator s = begin(); s != end(); ++s) { if ((*s)->_id == id) @@ -619,12 +636,6 @@ MessageQueue *GlobalMessageQueueList::getMessageQueueById(int id) { return 0; } -int MessageQueue::activateExCommandsByKind(int kind) { - warning("STUB: MessageQueue::activateExCommandsByKind()"); - - return 0; -} - void GlobalMessageQueueList::deleteQueueById(int id) { for (uint i = 0; i < size(); i++) if (_storage[i]->_id == id) { |