mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
Fix animation script sound effect opcode implementation in Kyra3.
svn-id: r42890
This commit is contained in:
parent
fcdd3b0310
commit
c6dd192ca6
@ -495,6 +495,7 @@ private:
|
||||
bool _useFrameTable;
|
||||
|
||||
int o3a_setCharacterFrame(EMCState *script);
|
||||
int o3a_playSoundEffect(EMCState *script);
|
||||
|
||||
// special shape code
|
||||
int initAnimationShapes(uint8 *filedata);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user