diff options
author | Jonathan Gray | 2003-04-24 00:44:34 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-04-24 00:44:34 +0000 |
commit | 8e06d3a23a35b5512043b8b7965537e32b689344 (patch) | |
tree | 421aeb70c9e091d94a1e0e9ac778d64d6264cbbe /scumm | |
parent | 80c73e2cc93e18306fc29d97bd52236c575a1e70 (diff) | |
download | scummvm-rg350-8e06d3a23a35b5512043b8b7965537e32b689344.tar.gz scummvm-rg350-8e06d3a23a35b5512043b8b7965537e32b689344.tar.bz2 scummvm-rg350-8e06d3a23a35b5512043b8b7965537e32b689344.zip |
bypass copy prot for indy3ega
svn-id: r7090
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index c62ce271df..3e810e7296 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -345,9 +345,7 @@ int Scumm::readVar(uint var) { if (var == 490 && _gameId == GID_MONKEY2 && !copyprotbypassed) { copyprotbypassed = true; var = 518; - } - - if (var == 179 && (_gameId == GID_MONKEY_VGA || _gameId == GID_MONKEY_EGA) && !copyprotbypassed) { + } else if (var == 179 && (_gameId == GID_MONKEY_VGA || _gameId == GID_MONKEY_EGA) && !copyprotbypassed) { copyprotbypassed = true; var = 266; } @@ -377,7 +375,13 @@ int Scumm::readVar(uint var) { var &= 0x0FFF; var >>= 4; checkRange(_numVariables - 1, 0, var, "Variable %d out of range(rzb)"); - return (_vars[ var ] & ( 1 << b ) ) ? 1 : 0; +#if defined(BYPASS_COPY_PROT) + if (var == 94 && _gameId == GID_INDY3 && !copyprotbypassed) { + copyprotbypassed = true; + return 0; + } else +#endif + return (_vars[ var ] & ( 1 << b ) ) ? 1 : 0; } var &= 0x7FFF; |