[Scummvm-cvs-logs] CVS: scummvm/scumm script_v72he.cpp,2.68,2.69
Travis Howell
kirben at users.sourceforge.net
Thu Sep 9 03:39:35 CEST 2004
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14396/scumm
Modified Files:
script_v72he.cpp
Log Message:
Corrections
Index: script_v72he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v72he.cpp,v
retrieving revision 2.68
retrieving revision 2.69
diff -u -d -r2.68 -r2.69
--- script_v72he.cpp 9 Sep 2004 04:44:46 -0000 2.68
+++ script_v72he.cpp 9 Sep 2004 10:36:10 -0000 2.69
@@ -1879,39 +1879,39 @@
}
void ScummEngine_v72he::o72_unknownF6() {
- int len, len2, pos, value, array;
+ int len, edi, pos, value, id;
value = pop();
- len = pop();
+ edi = pop();
pos = pop();
- array = pop();
+ id = pop();
- if (len >= 0) {
- len2 = resStrLen(getStringAddress(array));
- if (len2 < len)
- len = len2;
+ if (edi >= 0) {
+ len = resStrLen(getStringAddress(id));
+ if (len < edi)
+ edi = len;
} else {
- len = 12;
+ edi = 0;
}
if (pos < 0)
pos = 0;
- writeVar(0, array);
- if (pos > len) {
- while (pos > len) {
+ writeVar(0, id);
+ if (edi > pos) {
+ while (edi >= pos) {
if (readArray(0, 0, pos) == value) {
push(pos);
return;
}
- pos--;
+ pos++;
}
} else {
- while (pos < len) {
+ while (edi <= pos) {
if (readArray(0, 0, pos) == value) {
push(pos);
return;
}
- pos++;
+ pos--;
}
}
More information about the Scummvm-git-logs
mailing list