diff options
author | Johannes Schickel | 2009-07-29 14:54:27 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-07-29 14:54:27 +0000 |
commit | c6dd192ca6a006caf65ccaf8026d8d89106cf66d (patch) | |
tree | 0fcc6c151e8c011348d551038d64f5ef83d8cdaf /engines/kyra | |
parent | fcdd3b03104df163740ebded5a724c7c55696c21 (diff) | |
download | scummvm-rg350-c6dd192ca6a006caf65ccaf8026d8d89106cf66d.tar.gz scummvm-rg350-c6dd192ca6a006caf65ccaf8026d8d89106cf66d.tar.bz2 scummvm-rg350-c6dd192ca6a006caf65ccaf8026d8d89106cf66d.zip |
Fix animation script sound effect opcode implementation in Kyra3.
svn-id: r42890
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/kyra_mr.h | 1 | ||||
-rw-r--r-- | engines/kyra/script_mr.cpp | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/engines/kyra/kyra_mr.h b/engines/kyra/kyra_mr.h index 88bfb8c89b..2204f78b82 100644 --- a/engines/kyra/kyra_mr.h +++ b/engines/kyra/kyra_mr.h @@ -495,6 +495,7 @@ private: bool _useFrameTable; int o3a_setCharacterFrame(EMCState *script); + int o3a_playSoundEffect(EMCState *script); // special shape code int initAnimationShapes(uint8 *filedata); diff --git a/engines/kyra/script_mr.cpp b/engines/kyra/script_mr.cpp index 1800bd1939..819bf838ca 100644 --- a/engines/kyra/script_mr.cpp +++ b/engines/kyra/script_mr.cpp @@ -1114,6 +1114,12 @@ int KyraEngine_MR::o3a_setCharacterFrame(EMCState *script) { return 0; } +int KyraEngine_MR::o3a_playSoundEffect(EMCState *script) { + debugC(3, kDebugLevelScriptFuncs, "KyraEngine_MR::o3a_playSoundEffect(%p) (%d)", (const void *)script, stackPos(0)); + snd_playSoundEffect(stackPos(0), 200); + return 0; +} + #pragma mark - int KyraEngine_MR::o3d_updateAnim(EMCState *script) { @@ -1374,7 +1380,7 @@ void KyraEngine_MR::setupOpcodeTable() { // 0x00 Opcode(o2a_setAnimationShapes); Opcode(o3a_setCharacterFrame); - Opcode(o3_playSoundEffect); + Opcode(o3a_playSoundEffect); Opcode(o3_dummy); // 0x04 Opcode(o2a_setResetFrame); |