diff options
| author | johndoe123 | 2014-03-21 17:21:55 +0100 |
|---|---|---|
| committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
| commit | 762be35a364fe66359d29b85b650c6e7add80e47 (patch) | |
| tree | 61a1d7dd5849f7d79f961f4f46ce77036a88ade9 /engines/illusions/thread.cpp | |
| parent | 43cd806f17377d5244e575b863519f013e5f033c (diff) | |
| download | scummvm-rg350-762be35a364fe66359d29b85b650c6e7add80e47.tar.gz scummvm-rg350-762be35a364fe66359d29b85b650c6e7add80e47.tar.bz2 scummvm-rg350-762be35a364fe66359d29b85b650c6e7add80e47.zip | |
ILLUSIONS: Add more script opcodes and fix/add stuff along the way
- Unload backgrounds
- Add transparent sprite drawing
- Add AbortableThread
Diffstat (limited to 'engines/illusions/thread.cpp')
| -rw-r--r-- | engines/illusions/thread.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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) |
