diff options
author | Travis Howell | 2009-02-07 03:36:36 +0000 |
---|---|---|
committer | Travis Howell | 2009-02-07 03:36:36 +0000 |
commit | 5de19ecb28d51ce4b7aa973ea643c73448751ef1 (patch) | |
tree | 7de8bb90d52d15cfd246027548aeb02693b8f19f /engines/agos/script.cpp | |
parent | 3a4cc4b88d24bbe0133b7471f5314049059d230d (diff) | |
download | scummvm-rg350-5de19ecb28d51ce4b7aa973ea643c73448751ef1.tar.gz scummvm-rg350-5de19ecb28d51ce4b7aa973ea643c73448751ef1.tar.bz2 scummvm-rg350-5de19ecb28d51ce4b7aa973ea643c73448751ef1.zip |
Cleanup.
svn-id: r36232
Diffstat (limited to 'engines/agos/script.cpp')
-rw-r--r-- | engines/agos/script.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/agos/script.cpp b/engines/agos/script.cpp index edbb3a7a72..5eb864d40b 100644 --- a/engines/agos/script.cpp +++ b/engines/agos/script.cpp @@ -845,9 +845,9 @@ void AGOSEngine::o_freezeZones() { // 138: freeze zones freezeBottom(); - if (!_copyProtection && !(getFeatures() & GF_TALKIE)) { - if ((getGameType() == GType_SIMON1 && _subroutine == 2924) || - (getGameType() == GType_SIMON2 && _subroutine == 1322)) { + if (!_copyProtection && !(getFeatures() & GF_TALKIE) && _currentTable) { + if ((getGameType() == GType_SIMON1 && _currentTable->id == 2924) || + (getGameType() == GType_SIMON2 && _currentTable->id == 1322)) { _variableArray[134] = 3; _variableArray[135] = 3; setBitFlag(135, 1); @@ -978,7 +978,7 @@ int AGOSEngine::runScript() { return 1; do { - if (_continousMainScript) + if (_dumpOpcodes) dumpOpcode(_codePtr); if (getGameType() == GType_ELVIRA1) { |