pickVarRandom stub

svn-id: r6618
This commit is contained in:
Jonathan Gray 2003-02-17 21:42:33 +00:00
parent 516f970e64
commit c86cc94deb
2 changed files with 17 additions and 1 deletions

View File

@ -370,6 +370,7 @@ protected:
void o6_closeFile();
void o6_deleteFile();
void o6_findAllObjects();
void o6_pickVarRandom();
};
class Scumm_v7 : public Scumm_v6

View File

@ -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;