Skip to content

Commit

Permalink
FULLPIPE: Implement MessageQueue::transferExCommands()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- authored and Kamil Zbróg committed Oct 24, 2013
1 parent a6f0d09 commit d04a86c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions engines/fullpipe/messages.cpp
Expand Up @@ -344,6 +344,13 @@ void MessageQueue::deleteExCommandByIndex(uint idx, bool doFree) {
delete *it;
}

void MessageQueue::transferExCommands(MessageQueue *mq) {
while (mq->_exCommands.size()) {
_exCommands.push_back(mq->_exCommands.front());
mq->_exCommands.pop_front();
}
}

void MessageQueue::sendNextCommand() {
if (_exCommands.size()) {
if (!(_flags & 4) && (_flags & 1)) {
Expand Down
2 changes: 2 additions & 0 deletions engines/fullpipe/messages.h
Expand Up @@ -123,6 +123,8 @@ class MessageQueue : public CObject {
ExCommand *getExCommandByIndex(uint idx);
void deleteExCommandByIndex(uint idx, bool doFree);

void transferExCommands(MessageQueue *mq);

void replaceKeyCode(int key1, int key2);

bool chain(StaticANIObject *ani);
Expand Down

0 comments on commit d04a86c

Please sign in to comment.