diff options
author | Jonathan Gray | 2003-02-17 21:42:33 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-02-17 21:42:33 +0000 |
commit | c86cc94deb0e072f007c475f259c58ca42bb2c23 (patch) | |
tree | 050ee133058e1c6f608286469c0b07b01f06c48e | |
parent | 516f970e64fd00f9effa4707ec4970b9b9ef3b43 (diff) | |
download | scummvm-rg350-c86cc94deb0e072f007c475f259c58ca42bb2c23.tar.gz scummvm-rg350-c86cc94deb0e072f007c475f259c58ca42bb2c23.tar.bz2 scummvm-rg350-c86cc94deb0e072f007c475f259c58ca42bb2c23.zip |
pickVarRandom stub
svn-id: r6618
-rw-r--r-- | scumm/intern.h | 1 | ||||
-rw-r--r-- | scumm/script_v6.cpp | 17 |
2 files changed, 17 insertions, 1 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index 6ab4b821ac..df71a11d7b 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -370,6 +370,7 @@ protected: void o6_closeFile(); void o6_deleteFile(); void o6_findAllObjects(); + void o6_pickVarRandom(); }; class Scumm_v7 : public Scumm_v6 diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index 757e75174a..ffd2a1ba3e 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -326,7 +326,7 @@ void Scumm_v6::setupOpcodes() OPCODE(o6_invalid), OPCODE(o6_invalid), OPCODE(o6_invalid), - OPCODE(o6_invalid), + OPCODE(o6_pickVarRandom), /* E4 */ OPCODE(o6_invalid), OPCODE(o6_invalid), @@ -2949,6 +2949,21 @@ void Scumm_v6::o6_findAllObjects() { push(readVar(0)); } +void Scumm_v6::o6_pickVarRandom() { + int args[16]; + int a, b; + + warning("stub: o6_pickVarRandom()"); + getStackList(args, sizeof(args) / sizeof(args[0])); + a = fetchScriptWord(); + b = readVar(a); + // readArray(a, 0, 0); + // push(readVar(a)); + + // readArray(a, 0, ?); + push(2); +} + void Scumm_v6::decodeParseString(int m, int n) { byte b; |