aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v6.cpp
diff options
context:
space:
mode:
authorJonathan Gray2003-02-19 01:42:21 +0000
committerJonathan Gray2003-02-19 01:42:21 +0000
commitef8196befd03b1a7cc3180a91a5fb8497fed7f0f (patch)
treea969e7b7cc2aa64afa95807fb0c751c44c2b38df /scumm/script_v6.cpp
parent5c0cfe392b8cb92ef421bed731c3775c9cbd1b39 (diff)
downloadscummvm-rg350-ef8196befd03b1a7cc3180a91a5fb8497fed7f0f.tar.gz
scummvm-rg350-ef8196befd03b1a7cc3180a91a5fb8497fed7f0f.tar.bz2
scummvm-rg350-ef8196befd03b1a7cc3180a91a5fb8497fed7f0f.zip
make pickVarRandom stub print out its argument list to the console
svn-id: r6625
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r--scumm/script_v6.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index 5a088495bc..cd5e341e22 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -2952,10 +2952,17 @@ void Scumm_v6::o6_findAllObjects() {
void Scumm_v6::o6_pickVarRandom() {
int args[16];
- int a, b;
+ int num;
+ int a, b, i;
- warning("stub: o6_pickVarRandom()");
- getStackList(args, sizeof(args) / sizeof(args[0]));
+ num = getStackList(args, sizeof(args) / sizeof(args[0]));
+
+ printf("WARNING: stub o6_pickVarRandom([");
+ for (i=0; i < num; i++)
+ printf(" %d", args[i]);
+ printf(" ])!\n");
+
+
a = fetchScriptWord();
b = readVar(a);
// readArray(a, 0, 0);
@@ -2989,9 +2996,8 @@ void Scumm_v6::o6_unknownE0() {
if (a != 0) {
a--;
a--;
- if (a != 0) {
+ if (a != 0)
return;
- }
pop();
return;
}