[Scummvm-cvs-logs] CVS: scummvm/scumm script_v72he.cpp,2.167,2.168
Travis Howell
kirben at users.sourceforge.net
Sun Oct 10 19:10:51 CEST 2004
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17771/scumm
Modified Files:
script_v72he.cpp
Log Message:
Still not quite right.
Index: script_v72he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v72he.cpp,v
retrieving revision 2.167
retrieving revision 2.168
diff -u -d -r2.167 -r2.168
--- script_v72he.cpp 11 Oct 2004 01:31:34 -0000 2.167
+++ script_v72he.cpp 11 Oct 2004 02:05:37 -0000 2.168
@@ -2314,18 +2314,30 @@
if (!addr)
error("o72_stringLen: Reference to zeroed array pointer (%d)", id);
- while (*addr == *addr2) {
+ while(1) {
+ if (*addr != *addr2)
+ break;
if (*addr == 0) {
push(0);
return;
}
+
addr++;
addr2++;
- i++;
+
+ if (*addr != *addr2)
+ break;
+ if (*addr == 0) {
+ push(0);
+ return;
+ }
+
+ addr++;
+ addr2++;
+ i += 2;
}
- int r = (i) ? 1 : -1;
- push (r);
+ push (i);
debug(1,"o70_unknownF1 stub (%d, %d, %d)", id, id2, i);
}
More information about the Scummvm-git-logs
mailing list