aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
diff options
context:
space:
mode:
authorTravis Howell2004-02-21 15:08:36 +0000
committerTravis Howell2004-02-21 15:08:36 +0000
commit099bd2cb47762947044e2160e1de46bb15d47e84 (patch)
tree745a6af68c2cbbf9d0f524d92ecc8f1a3df392aa /scumm/script.cpp
parentd669bb702879e6df7170c127055322c5ecff5d62 (diff)
downloadscummvm-rg350-099bd2cb47762947044e2160e1de46bb15d47e84.tar.gz
scummvm-rg350-099bd2cb47762947044e2160e1de46bb15d47e84.tar.bz2
scummvm-rg350-099bd2cb47762947044e2160e1de46bb15d47e84.zip
This is normal for earlier games
svn-id: r12967
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r--scumm/script.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index ae5ea94bc3..9be01fb294 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -651,7 +651,9 @@ void ScummEngine::stopObjectCode() {
if (ss->where != WIO_GLOBAL && ss->where != WIO_LOCAL) {
if (ss->cutsceneOverride) {
- warning("Object %d ending with active cutscene/override (%d)", ss->number, ss->cutsceneOverride);
+ // Earlier games only checked global scripts at this point
+ if (_version >= 5)
+ warning("Object %d ending with active cutscene/override (%d)", ss->number, ss->cutsceneOverride);
ss->cutsceneOverride = 0;
}
} else {
@@ -819,8 +821,8 @@ void ScummEngine::killScriptsAndResources() {
}
ss->status = ssDead;
} else if (ss->where == WIO_LOCAL) {
- // HACK to make Indy3 Demo work
- if (ss->cutsceneOverride != 0 && !(_gameId == GID_INDY3 && (_features & GF_OLD_BUNDLE) && _roomResource == 3)) {
+ // Earlier games only checked global scripts at this point
+ if (ss->cutsceneOverride != 0 && _version >= 5) {
warning("Script %d stopped with active cutscene/override in exit", ss->number);
ss->cutsceneOverride = 0;
}
@@ -1107,7 +1109,7 @@ void ScummEngine::beginOverride() {
fetchScriptByte();
fetchScriptWord();
- // This is based on disassembly
+ // FIXME: why is this here? it doesn't seem to belong here?
VAR(VAR_OVERRIDE) = 0;
}