aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-08 11:21:57 +0200
committerEugene Sandulenko2014-01-08 11:21:57 +0200
commit19fb0d11bcd995c0c6ffd10ab11f82b02100bd8e (patch)
treeef56a281bedc81827453ed1ec469ba4d911ceb10
parentd423b5b1fef100d5bbb9087ee962c1c22109b656 (diff)
downloadscummvm-rg350-19fb0d11bcd995c0c6ffd10ab11f82b02100bd8e.tar.gz
scummvm-rg350-19fb0d11bcd995c0c6ffd10ab11f82b02100bd8e.tar.bz2
scummvm-rg350-19fb0d11bcd995c0c6ffd10ab11f82b02100bd8e.zip
FULLPIPE: Implement MessageQueue::insertExCommandAt()
-rw-r--r--engines/fullpipe/messages.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp
index 4665712ca0..34308976b9 100644
--- a/engines/fullpipe/messages.cpp
+++ b/engines/fullpipe/messages.cpp
@@ -392,7 +392,12 @@ void MessageQueue::addExCommandToEnd(ExCommand *ex) {
}
void MessageQueue::insertExCommandAt(int pos, ExCommand *ex) {
- warning("STUB: MessageQueue::insertExCommandAt()");
+ Common::List<ExCommand *>::iterator it = _exCommands.begin();
+
+ for (int i = pos; i > 0; i--)
+ ++it;
+
+ _exCommands.insert(it, ex);
}
ExCommand *MessageQueue::getExCommandByIndex(uint idx) {