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 /scumm/script_v6.cpp | |
parent | 516f970e64fd00f9effa4707ec4970b9b9ef3b43 (diff) | |
download | scummvm-rg350-c86cc94deb0e072f007c475f259c58ca42bb2c23.tar.gz scummvm-rg350-c86cc94deb0e072f007c475f259c58ca42bb2c23.tar.bz2 scummvm-rg350-c86cc94deb0e072f007c475f259c58ca42bb2c23.zip |
pickVarRandom stub
svn-id: r6618
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r-- | scumm/script_v6.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
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; |