From 762be35a364fe66359d29b85b650c6e7add80e47 Mon Sep 17 00:00:00 2001 From: johndoe123 Date: Fri, 21 Mar 2014 17:21:55 +0100 Subject: ILLUSIONS: Add more script opcodes and fix/add stuff along the way - Unload backgrounds - Add transparent sprite drawing - Add AbortableThread --- engines/illusions/thread.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines/illusions/thread.cpp') diff --git a/engines/illusions/thread.cpp b/engines/illusions/thread.cpp index c16ecd4584..83e0ce5ab4 100644 --- a/engines/illusions/thread.cpp +++ b/engines/illusions/thread.cpp @@ -91,7 +91,6 @@ int Thread::update() { int status = kTSYield; if (!_terminated && _pauseCtr <= 0) { status = onUpdate(); - debug("Thread status: %d", status); if (status == kTSTerminate) terminate(); else if (status == kTSSuspend) @@ -230,6 +229,14 @@ void ThreadList::resumeThreads(uint32 threadId) { } } +void ThreadList::endTalkThreads() { + for (Iterator it = _threads.begin(); it != _threads.end(); ++it) { + Thread *thread = *it; + if (thread->_type == kTTTalkThread) + thread->terminate(); + } +} + void ThreadList::killThread(uint32 threadId) { if (!threadId) -- cgit v1.2.3