diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/kyra_v3.h | 1 | ||||
-rw-r--r-- | engines/kyra/script_v3.cpp | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/engines/kyra/kyra_v3.h b/engines/kyra/kyra_v3.h index 7279b52c5e..2184dc8ae9 100644 --- a/engines/kyra/kyra_v3.h +++ b/engines/kyra/kyra_v3.h @@ -610,6 +610,7 @@ private: int o3t_defineNewShapes(ScriptState *script); int o3t_setCurrentFrame(ScriptState *script); + int o3t_setNewShapeFlag(ScriptState *script); ScriptData _temporaryScriptData; ScriptState _temporaryScriptState; diff --git a/engines/kyra/script_v3.cpp b/engines/kyra/script_v3.cpp index 73fca67b58..18ea960863 100644 --- a/engines/kyra/script_v3.cpp +++ b/engines/kyra/script_v3.cpp @@ -1015,6 +1015,12 @@ int KyraEngine_v3::o3t_setCurrentFrame(ScriptState *script) { return 0; } +int KyraEngine_v3::o3t_setNewShapeFlag(ScriptState *script) { + debugC(3, kDebugLevelScriptFuncs, "KyraEngine_v3::o3t_setNewShapeFlag(%p) (%d)", (const void *)script, stackPos(0)); + _newShapeFlag = stackPos(0); + return 0; +} + #pragma mark - int KyraEngine_v3::o3d_updateAnim(ScriptState *script) { @@ -1275,7 +1281,7 @@ void KyraEngine_v3::setupOpcodeTable() { Opcode(o3_playSoundEffect); Opcode(o3_dummy); // 0x0a - OpcodeUnImpl(); + Opcode(o3t_setNewShapeFlag); Opcode(o3_getRand); Opcode(o3_getMalcolmShapes); Opcode(o3_dummy); |