diff options
author | Johannes Schickel | 2007-01-20 15:28:03 +0000 |
---|---|---|
committer | Johannes Schickel | 2007-01-20 15:28:03 +0000 |
commit | b6b75af524e7446c961801b11abe170400335bdd (patch) | |
tree | a7364f90a688bb702b432962c95df0c0a8c5329c /engines | |
parent | d1b97e6786677483d9b908446640230f34cf9c8d (diff) | |
download | scummvm-rg350-b6b75af524e7446c961801b11abe170400335bdd.tar.gz scummvm-rg350-b6b75af524e7446c961801b11abe170400335bdd.tar.bz2 scummvm-rg350-b6b75af524e7446c961801b11abe170400335bdd.zip |
Completed implementation of o1_restoreAllObjectBackgrounds.
svn-id: r25127
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/script_v1.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/kyra/script_v1.cpp b/engines/kyra/script_v1.cpp index 0ddb631afe..f0052424f0 100644 --- a/engines/kyra/script_v1.cpp +++ b/engines/kyra/script_v1.cpp @@ -594,8 +594,16 @@ int KyraEngine::o1_popBrandonIntoScene(ScriptState *script) { } int KyraEngine::o1_restoreAllObjectBackgrounds(ScriptState *script) { - debugC(3, kDebugLevelScriptFuncs, "o1_restoreAllObjectBackgrounds(%p) ()", (const void *)script); + debugC(3, kDebugLevelScriptFuncs, "o1_restoreAllObjectBackgrounds(%p) (%d)", (const void *)script, stackPos(0)); + int disable = stackPos(0); + int activeBackup = 0; + if (disable) { + activeBackup = _animator->actors()->active; + _animator->actors()->active = 0; + } _animator->restoreAllObjectBackgrounds(); + if (disable) + _animator->actors()->active = activeBackup; return 0; } |