diff options
author | Filippos Karapetis | 2013-12-11 22:51:49 +0200 |
---|---|---|
committer | Filippos Karapetis | 2013-12-11 22:52:49 +0200 |
commit | edbf2d49fba3041b8c29c1a256b570512fd44f40 (patch) | |
tree | e1ebe3fd4feaccaa3d91789f08097170f20e2813 /engines/fullpipe/messages.cpp | |
parent | 185cf9ea3c3b40d88baeadae9f7e65f842d3596d (diff) | |
download | scummvm-rg350-edbf2d49fba3041b8c29c1a256b570512fd44f40.tar.gz scummvm-rg350-edbf2d49fba3041b8c29c1a256b570512fd44f40.tar.bz2 scummvm-rg350-edbf2d49fba3041b8c29c1a256b570512fd44f40.zip |
FULLPIPE: Make _exCommands private
Diffstat (limited to 'engines/fullpipe/messages.cpp')
-rw-r--r-- | engines/fullpipe/messages.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp index 32cfb4f2bd..36148734ca 100644 --- a/engines/fullpipe/messages.cpp +++ b/engines/fullpipe/messages.cpp @@ -326,6 +326,10 @@ void MessageQueue::addExCommand(ExCommand *ex) { _exCommands.push_front(ex); } +void MessageQueue::addExCommandToEnd(ExCommand *ex) { + _exCommands.push_back(ex); +} + ExCommand *MessageQueue::getExCommandByIndex(uint idx) { if (idx > _exCommands.size()) return 0; @@ -492,7 +496,7 @@ int MessageQueue::calcDuration(StaticANIObject *obj) { ExCommand *ex; Movement *mov; - for (uint i = 0; (ex = getExCommandByIndex(i)); i++) + for (uint i = 0; (ex = getExCommandByIndex(i)); i++) { if (ex->_parentId == obj->_id) { if (ex->_messageKind == 1 || ex->_messageKind == 20) { if ((mov = obj->getMovementById(ex->_messageNum)) != 0) { @@ -503,6 +507,7 @@ int MessageQueue::calcDuration(StaticANIObject *obj) { } } } + } return res; } |