aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2004-10-07 10:33:46 +0000
committerMax Horn2004-10-07 10:33:46 +0000
commit6f02fab8f359fbe8d48dffd569ddc03506f5e0fb (patch)
treeb6b90862ffbd33127a905086024b74e353be6ffd /scumm
parenta9f1d362eac0d590c9bbb370d3c488b2cbe35b3f (diff)
downloadscummvm-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.cpp8
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;
}
}