aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/thread.cpp
diff options
context:
space:
mode:
authorjohndoe1232014-03-20 13:24:33 +0100
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commitf47575ca906682bab942d19a36cc33ea7465a4b2 (patch)
tree982764727aab8fde9a46ca15f917685135b6d703 /engines/illusions/thread.cpp
parentc99f40c13d945060f489693d3f533b6ce0b54adb (diff)
downloadscummvm-rg350-f47575ca906682bab942d19a36cc33ea7465a4b2.tar.gz
scummvm-rg350-f47575ca906682bab942d19a36cc33ea7465a4b2.tar.bz2
scummvm-rg350-f47575ca906682bab942d19a36cc33ea7465a4b2.zip
ILLUSIONS: Add more script opcodes and related
Diffstat (limited to 'engines/illusions/thread.cpp')
-rw-r--r--engines/illusions/thread.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/illusions/thread.cpp b/engines/illusions/thread.cpp
index e398c33ba5..c16ecd4584 100644
--- a/engines/illusions/thread.cpp
+++ b/engines/illusions/thread.cpp
@@ -256,4 +256,15 @@ void ThreadList::killThread(uint32 threadId) {
}
+void ThreadList::setThreadSceneId(uint32 threadId, uint32 sceneId) {
+ Thread *thread = findThread(threadId);
+ if (thread)
+ thread->_tag = sceneId;
+}
+
+uint32 ThreadList::getThreadSceneId(uint32 threadId) {
+ Thread *thread = findThread(threadId);
+ return thread ? thread->_tag : 0;
+}
+
} // End of namespace Illusions