From edbf2d49fba3041b8c29c1a256b570512fd44f40 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 11 Dec 2013 22:51:49 +0200 Subject: FULLPIPE: Make _exCommands private --- engines/fullpipe/messages.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/fullpipe/messages.cpp') 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; } -- cgit v1.2.3