diff options
author | Eugene Sandulenko | 2004-02-23 04:01:39 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-02-23 04:01:39 +0000 |
commit | a2ea28b56fc69488b9d8705cb9e28c1b6a81af96 (patch) | |
tree | 5ae695245673a38decaf33b7913d3b18d12dcc8e /scumm/script_v6.cpp | |
parent | ab72dadbff628b725d80a3d63f8bf88ece866a8f (diff) | |
download | scummvm-rg350-a2ea28b56fc69488b9d8705cb9e28c1b6a81af96.tar.gz scummvm-rg350-a2ea28b56fc69488b9d8705cb9e28c1b6a81af96.tar.bz2 scummvm-rg350-a2ea28b56fc69488b9d8705cb9e28c1b6a81af96.zip |
Proper implementation of readFile, writeFile and redimArray.
HE specific fixes to defineArray.
Now many things started to work in HE games.
svn-id: r13003
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r-- | scumm/script_v6.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index 61a3bdc0f3..fe0a1a2314 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -402,8 +402,13 @@ ArrayHeader *ScummEngine_v6::defineArray(int array, int type, int dim2, int dim1 int size; ArrayHeader *ah; - if (type != 4) - type = 5; + if (!(_features & GF_HUMONGOUS)) { + if (type != rtSound) + type = rtInventory; + } else { + if (type == rtScript || type == rtRoom) + type = rtCostume; + } nukeArray(array); |