aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-04-24 21:38:08 +0000
committerJohannes Schickel2008-04-24 21:38:08 +0000
commita546869dac2b455705c3a6db9a86bc7b523e1ea8 (patch)
treec2d50381e95d1747fc840ae98487abd055fec619
parent2b9a786e795363a627720a08aef8e5ab2fe019de (diff)
downloadscummvm-rg350-a546869dac2b455705c3a6db9a86bc7b523e1ea8.tar.gz
scummvm-rg350-a546869dac2b455705c3a6db9a86bc7b523e1ea8.tar.bz2
scummvm-rg350-a546869dac2b455705c3a6db9a86bc7b523e1ea8.zip
Implemented opcode temporary 4: o3t_setNewShapeFlag.
svn-id: r31709
-rw-r--r--engines/kyra/kyra_v3.h1
-rw-r--r--engines/kyra/script_v3.cpp8
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);