diff options
author | Travis Howell | 2004-09-05 09:36:51 +0000 |
---|---|---|
committer | Travis Howell | 2004-09-05 09:36:51 +0000 |
commit | 6b09826b33a44f0b8c0f802fdcfef437695f86af (patch) | |
tree | b333a424e9e7a837ab1a7765b715dfe996dfa2d0 /scumm/script_v6.cpp | |
parent | 010a781adaa311643dde1674a41f3728b87f0a29 (diff) | |
download | scummvm-rg350-6b09826b33a44f0b8c0f802fdcfef437695f86af.tar.gz scummvm-rg350-6b09826b33a44f0b8c0f802fdcfef437695f86af.tar.bz2 scummvm-rg350-6b09826b33a44f0b8c0f802fdcfef437695f86af.zip |
Increase actor.sound to 32 for HE 80+ games.
Add some more HE vars.
More adjustments for copying script strings in HE games.
svn-id: r14903
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r-- | scumm/script_v6.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index e23c5e72f1..220899cae7 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -398,6 +398,9 @@ int ScummEngine_v6::popRoomAndObj(int *room) { } ArrayHeader *ScummEngine_v6::defineArray(int array, int type, int dim2, int dim1) { + if (_heversion >= 72) + error("Call to old defineArray"); + int id; int size; ArrayHeader *ah; @@ -503,6 +506,9 @@ ArrayHeader *ScummEngine_v6::getArray(int array) { } int ScummEngine_v6::readArray(int array, int idx, int base) { + if (_heversion >= 72) + error("Call to old readArray"); + ArrayHeader *ah = getArray(array); if (ah == NULL || ah->data == NULL) @@ -536,6 +542,9 @@ int ScummEngine_v6::readArray(int array, int idx, int base) { } void ScummEngine_v6::writeArray(int array, int idx, int base, int value) { + if (_heversion >= 72) + error("Call to old writeArray"); + ArrayHeader *ah = getArray(array); if (!ah) return; @@ -1910,7 +1919,6 @@ void ScummEngine_v6::o6_verbOps() { int slot, a, b; VerbSlot *vs; byte op; - byte name[200]; op = fetchScriptByte(); if (op == 196) { @@ -1932,8 +1940,7 @@ void ScummEngine_v6::o6_verbOps() { } break; case 125: // SO_VERB_NAME - copyScriptString(name); - loadPtrToResource(rtVerb, slot, name); + loadPtrToResource(rtVerb, slot, NULL); vs->type = kTextVerbType; vs->imgindex = 0; break; |