diff options
| author | Max Horn | 2002-12-25 20:29:40 +0000 |
|---|---|---|
| committer | Max Horn | 2002-12-25 20:29:40 +0000 |
| commit | 9187172fe2f771b1d2036b231170446008631a98 (patch) | |
| tree | 539578951e261b769f42d4e13873fa28bdfcd2dc /scumm/script.cpp | |
| parent | aed55eff698f8e67ec3e5307cb02fdd33bcb1fe4 (diff) | |
| download | scummvm-rg350-9187172fe2f771b1d2036b231170446008631a98.tar.gz scummvm-rg350-9187172fe2f771b1d2036b231170446008631a98.tar.bz2 scummvm-rg350-9187172fe2f771b1d2036b231170446008631a98.zip | |
implemented V8 kernel function 'killAllScriptsButMe' - not sure if I did it right, though
svn-id: r6145
Diffstat (limited to 'scumm/script.cpp')
| -rw-r--r-- | scumm/script.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index 2613acc3b1..1c161732b2 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -748,6 +748,14 @@ void Scumm::killScriptsAndResources() } } +void Scumm::killAllScriptsExceptCurrent() +{ + for (int i = 1; i < NUM_SCRIPT_SLOT; i++) { + if (i != _currentScript) + vm.slot[i].status = ssDead; + } +} + void Scumm::checkAndRunSentenceScript() { int i; |
