diff options
| author | Travis Howell | 2004-10-11 02:05:37 +0000 | 
|---|---|---|
| committer | Travis Howell | 2004-10-11 02:05:37 +0000 | 
| commit | 76ea75ca6610a276616791e55275a175830cc0cf (patch) | |
| tree | ee6ee109465c1fc0e42d384b2cd374dddcdad0e7 | |
| parent | 17d3e301805b1caee8cfb800108cda990f221013 (diff) | |
| download | scummvm-rg350-76ea75ca6610a276616791e55275a175830cc0cf.tar.gz scummvm-rg350-76ea75ca6610a276616791e55275a175830cc0cf.tar.bz2 scummvm-rg350-76ea75ca6610a276616791e55275a175830cc0cf.zip | |
Still not quite right.
svn-id: r15513
| -rw-r--r-- | scumm/script_v72he.cpp | 20 | 
1 files changed, 16 insertions, 4 deletions
| diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 59a0686005..3846ea334a 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -2314,18 +2314,30 @@ void ScummEngine_v72he::o72_unknownF1() {  	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);  } | 
