From a546869dac2b455705c3a6db9a86bc7b523e1ea8 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 24 Apr 2008 21:38:08 +0000 Subject: Implemented opcode temporary 4: o3t_setNewShapeFlag. svn-id: r31709 --- engines/kyra/kyra_v3.h | 1 + engines/kyra/script_v3.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3