From 6ab104cc3ca433b672318b3e9bde26f7e882940c Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 8 May 2003 14:32:25 +0000 Subject: some V2 fixes (we really really need to revise the _vars handling!) svn-id: r7392 --- scumm/script.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scumm') diff --git a/scumm/script.cpp b/scumm/script.cpp index 4ff48ffca8..b1ccf99b43 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -653,7 +653,7 @@ void Scumm::runAllScripts() { } void Scumm::runExitScript() { - if (_vars[VAR_EXIT_SCRIPT]) + if (!(_features & GF_AFTER_V2) && _vars[VAR_EXIT_SCRIPT]) runScript(_vars[VAR_EXIT_SCRIPT], 0, 0, 0); if (_EXCD_offs) { int slot = getScriptSlot(); @@ -684,12 +684,12 @@ void Scumm::runExitScript() { runScriptNested(slot); } - if (_vars[VAR_EXIT_SCRIPT2]) + if (!(_features & GF_AFTER_V2) && _vars[VAR_EXIT_SCRIPT2]) runScript(_vars[VAR_EXIT_SCRIPT2], 0, 0, 0); } void Scumm::runEntryScript() { - if (_vars[VAR_ENTRY_SCRIPT]) + if (!(_features & GF_AFTER_V2) && _vars[VAR_ENTRY_SCRIPT]) runScript(_vars[VAR_ENTRY_SCRIPT], 0, 0, 0); if (_ENCD_offs) { int slot = getScriptSlot(); @@ -703,7 +703,7 @@ void Scumm::runEntryScript() { vm.slot[slot].delayFrameCount = 0; runScriptNested(slot); } - if (_vars[VAR_ENTRY_SCRIPT2]) + if (!(_features & GF_AFTER_V2) && _vars[VAR_ENTRY_SCRIPT2]) runScript(_vars[VAR_ENTRY_SCRIPT2], 0, 0, 0); } -- cgit v1.2.3