aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/kyra_v2.h1
-rw-r--r--engines/kyra/script_v2.cpp9
2 files changed, 9 insertions, 1 deletions
diff --git a/engines/kyra/kyra_v2.h b/engines/kyra/kyra_v2.h
index e839d7869e..f4084be06d 100644
--- a/engines/kyra/kyra_v2.h
+++ b/engines/kyra/kyra_v2.h
@@ -960,6 +960,7 @@ protected:
int o2_setCharacterAnimFrame(ScriptState *script);
int o2_trySceneChange(ScriptState *script);
int o2_customCharacterChat(ScriptState *script);
+ int o2_soundFadeOut(ScriptState *script);
int o2_showChapterMessage(ScriptState *script);
int o2_restoreTalkTextMessageBkgd(ScriptState *script);
int o2_wsaClose(ScriptState *script);
diff --git a/engines/kyra/script_v2.cpp b/engines/kyra/script_v2.cpp
index 5ac9531db1..9b2ac9017c 100644
--- a/engines/kyra/script_v2.cpp
+++ b/engines/kyra/script_v2.cpp
@@ -26,6 +26,7 @@
#include "kyra/kyra_v2.h"
#include "kyra/text_v2.h"
#include "kyra/wsamovie.h"
+#include "kyra/sound.h"
#include "common/endian.h"
@@ -149,6 +150,12 @@ int KyraEngine_v2::o2_customCharacterChat(ScriptState *script) {
return 0;
}
+int KyraEngine_v2::o2_soundFadeOut(ScriptState *script) {
+ debugC(3, kDebugLevelScriptFuncs, "o2_soundFadeOut(%p) ()", (const void *)script);
+ _sound->beginFadeOut();
+ return 0;
+}
+
int KyraEngine_v2::o2_showChapterMessage(ScriptState *script) {
debugC(3, kDebugLevelScriptFuncs, "o2_showChapterMessage(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
showChapterMessage(stackPos(0), stackPos(1));
@@ -1377,7 +1384,7 @@ void KyraEngine_v2::setupOpcodeTable() {
OpcodeUnImpl(),
Opcode(o2_customCharacterChat),
// 0x10
- OpcodeUnImpl(),
+ Opcode(o2_soundFadeOut),
Opcode(o2_showChapterMessage),
Opcode(o2_restoreTalkTextMessageBkgd),
OpcodeUnImpl(),