[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6.cpp,1.57,1.58
Jonathan Gray
khalek at users.sourceforge.net
Tue Feb 18 17:43:08 CET 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv1008
Modified Files:
script_v6.cpp
Log Message:
make pickVarRandom stub print out its argument list to the console
Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- script_v6.cpp 18 Feb 2003 23:59:54 -0000 1.57
+++ script_v6.cpp 19 Feb 2003 01:42:21 -0000 1.58
@@ -2952,10 +2952,17 @@
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 @@
if (a != 0) {
a--;
a--;
- if (a != 0) {
+ if (a != 0)
return;
- }
pop();
return;
}
More information about the Scummvm-git-logs
mailing list