diff options
author | Travis Howell | 2004-02-11 03:36:27 +0000 |
---|---|---|
committer | Travis Howell | 2004-02-11 03:36:27 +0000 |
commit | e451c498ac0af11d69ee2a973434fc1a1782a92c (patch) | |
tree | 7c922844be43eeaf2ad73e555d10e81eff618647 /scumm/script_v6he.cpp | |
parent | 76fc86f02847daf94b8b699a32974362f9ff4937 (diff) | |
download | scummvm-rg350-e451c498ac0af11d69ee2a973434fc1a1782a92c.tar.gz scummvm-rg350-e451c498ac0af11d69ee2a973434fc1a1782a92c.tar.bz2 scummvm-rg350-e451c498ac0af11d69ee2a973434fc1a1782a92c.zip |
Rename as requested.
svn-id: r12820
Diffstat (limited to 'scumm/script_v6he.cpp')
-rw-r--r-- | scumm/script_v6he.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp index b132c4f9a0..71be9a656f 100644 --- a/scumm/script_v6he.cpp +++ b/scumm/script_v6he.cpp @@ -339,7 +339,7 @@ void ScummEngine_v6he::setupOpcodes() { /* E8 */ OPCODE(o6_invalid), OPCODE(o6_seekFile), - OPCODE(o6_unknownEA), + OPCODE(o6_redimArray), OPCODE(o6_invalid), /* EC */ OPCODE(o6_invalid), @@ -1110,7 +1110,7 @@ void ScummEngine_v6he::o6_seekFile() { warning("stub o6_seekFile(%d, %d, %d)", a, b, c); } -void ScummEngine_v6he::o6_unknownEA() { +void ScummEngine_v6he::o6_redimArray() { int edi, esi, eax; edi = pop(); esi = pop(); @@ -1124,27 +1124,27 @@ void ScummEngine_v6he::o6_unknownEA() { eax = fetchScriptByte(); switch (eax) { case 199: - unknownEA_func(fetchScriptWord(), esi, edi, 5); + redimArray(fetchScriptWord(), esi, edi, 5); break; case 202: - unknownEA_func(fetchScriptWord(), esi, edi, 3); + redimArray(fetchScriptWord(), esi, edi, 3); break; default: break; } } -void ScummEngine_v6he::unknownEA_func(int arrayId, int newX, int newY, int d) { +void ScummEngine_v6he::redimArray(int arrayId, int newX, int newY, int d) { // Used in mini game at Cosmic Dust Diner in puttmoon int var_2, var_4, ax, cx; if (readVar(arrayId) == 0) - error("unknownEA_func: Reference to zeroed array pointer"); + error("redimArray: Reference to zeroed array pointer"); byte *ptr = getResourceAddress(rtString, readVar(arrayId)); if (!ptr) - error("unknownEA_func: Invalid array (%d) reference", readVar(arrayId)); + error("redimArray: Invalid array (%d) reference", readVar(arrayId)); if (d == 5) var_2 = 2; @@ -1160,7 +1160,7 @@ void ScummEngine_v6he::unknownEA_func(int arrayId, int newX, int newY, int d) { ax = var_4 * READ_LE_UINT16(ptr + 2) * READ_LE_UINT16(ptr + 4); if (ax == cx) - error("unknownEA_func: array %d redim mismatch", readVar(arrayId)); + error("redimArray: array %d redim mismatch", readVar(arrayId)); WRITE_LE_UINT16(ptr, d); WRITE_LE_UINT16(ptr + 2, newX + 1); |