aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2004-01-14 09:54:45 +0000
committerTravis Howell2004-01-14 09:54:45 +0000
commitf6f3ea8da32ff5eaa09a012f815111738d06c033 (patch)
tree43199bf3e3861917c298e5c14853b5504f3b4f7f
parent15738c13d3ebab0c34152669a9752f6c3b773096 (diff)
downloadscummvm-rg350-f6f3ea8da32ff5eaa09a012f815111738d06c033.tar.gz
scummvm-rg350-f6f3ea8da32ff5eaa09a012f815111738d06c033.tar.bz2
scummvm-rg350-f6f3ea8da32ff5eaa09a012f815111738d06c033.zip
Add missing code for samnmax screen saver, fixes bug #781683
svn-id: r12375
-rw-r--r--scumm/script_v6.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index 4e54d7c891..f462cd43b4 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -2604,7 +2604,23 @@ void ScummEngine_v6::o6_kernelSetFunctions() {
// minutes of inactivity (no mouse movements) before
// starting the screensaver, so setting it to 0 will
// help in debugging.
- warning("stub o6_kernelSetFunctions_117()");
+ {
+ int i;
+ for (i = 0; i < 25; i++) {
+ if (_currentScript != i && vm.slot[i].status != ssDead) {
+ vm.slot[i].status |= 0x80;
+ vm.slot[i].freezeCount++;
+ }
+ }
+
+ for (i = 0; i < 6; i++)
+ _sentence[i].freezeCount++;
+
+ if (vm.cutSceneScriptIndex != 0xFF) {
+ vm.slot[vm.cutSceneScriptIndex].status &= 0x7F;
+ vm.slot[vm.cutSceneScriptIndex].freezeCount = 0;
+ }
+ }
break;
case 119:
enqueueObject(args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], 0);