diff options
author | Max Horn | 2004-10-07 10:33:46 +0000 |
---|---|---|
committer | Max Horn | 2004-10-07 10:33:46 +0000 |
commit | 6f02fab8f359fbe8d48dffd569ddc03506f5e0fb (patch) | |
tree | b6b90862ffbd33127a905086024b74e353be6ffd /scumm | |
parent | a9f1d362eac0d590c9bbb370d3c488b2cbe35b3f (diff) | |
download | scummvm-rg350-6f02fab8f359fbe8d48dffd569ddc03506f5e0fb.tar.gz scummvm-rg350-6f02fab8f359fbe8d48dffd569ddc03506f5e0fb.tar.bz2 scummvm-rg350-6f02fab8f359fbe8d48dffd569ddc03506f5e0fb.zip |
Removed some code which has no effect (looks like a coding mistake?)
svn-id: r15444
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index 8731d462cc..f9dae2e90d 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -477,11 +477,6 @@ int ScummEngine::fetchScriptWordSigned() { int ScummEngine::readVar(uint var) { int a; - static byte copyprotbypassed; - if (!_copyProtection) - copyprotbypassed = false; - else - copyprotbypassed = true; debugC(DEBUG_VARS, "readvar(%d)", var); @@ -496,8 +491,7 @@ int ScummEngine::readVar(uint var) { if (!(var & 0xF000)) { if (!_copyProtection) { - if (var == 490 && _gameId == GID_MONKEY2 && !copyprotbypassed) { - copyprotbypassed = true; + if (var == 490 && _gameId == GID_MONKEY2) { var = 518; } } |