aboutsummaryrefslogtreecommitdiff
path: root/scumm/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/object.cpp')
-rw-r--r--scumm/object.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp
index 0b02463340..dc61789aa8 100644
--- a/scumm/object.cpp
+++ b/scumm/object.cpp
@@ -851,6 +851,17 @@ void ScummEngine::addObjectToDrawQue(int object) {
_drawObjectQue[_drawObjectQueNr++] = object;
}
+void ScummEngine::removeObjectFromDrawQue(int object) {
+ if (_drawObjectQue <= 0)
+ return;
+
+ int i;
+ for (i = 0; i < _drawObjectQueNr; i++) {
+ if (_drawObjectQue[i] = object)
+ _drawObjectQue[i] = 0;
+ }
+}
+
void ScummEngine::clearDrawObjectQueue() {
_drawObjectQueNr = 0;
}