From 6ad08cd944fec6685f7d82f082437e2de87a8871 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 18 Oct 2004 05:10:15 +0000 Subject: Cleanup svn-id: r15601 --- scumm/script_v72he.cpp | 9 +++++---- scumm/script_v7he.cpp | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) (limited to 'scumm') diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 781df21ce7..4d713da78a 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -2371,11 +2371,12 @@ void ScummEngine_v72he::o72_unknownEC() { void ScummEngine_v72he::o72_unknownEF() { int dst, size; - int b = pop(); - int a = pop(); + + int len = pop(); + int srcOffs = pop(); int src = pop(); - size = b - a + 2; + size = len - srcOffs + 2; writeVar(0, 0); defineArray(0, kStringArray, 0, 0, 0, size); @@ -2383,7 +2384,7 @@ void ScummEngine_v72he::o72_unknownEF() { dst = readVar(0); - arrrays_unk2(dst, src, a, b); + arrrays_unk2(dst, src, srcOffs, len); push(dst); debug(1,"stub o72_unknownEF"); diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp index 9e12984ce8..a3dbc683f9 100644 --- a/scumm/script_v7he.cpp +++ b/scumm/script_v7he.cpp @@ -815,11 +815,12 @@ void ScummEngine_v70he::o70_stringLen() { void ScummEngine_v70he::o70_unknownEF() { int dst, size; - int b = pop(); - int a = pop(); + + int len = pop(); + int srcOffs = pop(); int src = pop(); - size = b - a + 2; + size = len - srcOffs + 2; writeVar(0, 0); defineArray(0, kStringArray, 0, size); @@ -827,7 +828,7 @@ void ScummEngine_v70he::o70_unknownEF() { dst = readVar(0); - arrrays_unk2(dst, src, a, b); + arrrays_unk2(dst, src, srcOffs, len); push(dst); debug(1,"stub o70_unknownEF"); -- cgit v1.2.3