diff options
author | Travis Howell | 2004-08-03 04:26:30 +0000 |
---|---|---|
committer | Travis Howell | 2004-08-03 04:26:30 +0000 |
commit | 55c291a9b7499e287ffc1a20390891c2cf9f4ef8 (patch) | |
tree | ede40d4c2c9f4b671a409031389779266a361ebb /scumm/scumm.cpp | |
parent | fd2e14f33c92d15fc49157d435aa9b80b1983bb7 (diff) | |
download | scummvm-rg350-55c291a9b7499e287ffc1a20390891c2cf9f4ef8.tar.gz scummvm-rg350-55c291a9b7499e287ffc1a20390891c2cf9f4ef8.tar.bz2 scummvm-rg350-55c291a9b7499e287ffc1a20390891c2cf9f4ef8.zip |
Shouldn't error out in early scumm 1 - 4 games.
svn-id: r14454
Diffstat (limited to 'scumm/scumm.cpp')
-rw-r--r-- | scumm/scumm.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index a9c5ce7e17..0c820cc6ec 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -2164,16 +2164,15 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) { if (_currentScript != 0xFF) { if (ss->where == WIO_ROOM || ss->where == WIO_FLOBJECT) { - if (ss->cutsceneOverride != 0) + if (ss->cutsceneOverride && _version >= 5) error("Object %d stopped with active cutscene/override in exit", ss->number); + nukeArrays(_currentScript); _currentScript = 0xFF; } else if (ss->where == WIO_LOCAL) { - if (ss->cutsceneOverride != 0) { - // Earlier games only checked global scripts at this point - if (_version >= 5) - error("Script %d stopped with active cutscene/override in exit", ss->number); - } + if (ss->cutsceneOverride && _version >= 5) + error("Script %d stopped with active cutscene/override in exit", ss->number); + nukeArrays(_currentScript); _currentScript = 0xFF; } |