diff options
author | Travis Howell | 2003-12-11 06:08:43 +0000 |
---|---|---|
committer | Travis Howell | 2003-12-11 06:08:43 +0000 |
commit | 3d6461d30f9ec9a1be822a426304360b372f650a (patch) | |
tree | b5aeb0f17a3d3be9b8150438d0ae458a7c3306c5 /scumm/object.cpp | |
parent | 2ef887fd445b5226da99bf2a0e1917d02806325c (diff) | |
download | scummvm-rg350-3d6461d30f9ec9a1be822a426304360b372f650a.tar.gz scummvm-rg350-3d6461d30f9ec9a1be822a426304360b372f650a.tar.bz2 scummvm-rg350-3d6461d30f9ec9a1be822a426304360b372f650a.zip |
Add option to enable copy protection in SCUMM games, which ScummVM disable it by default.
svn-id: r11571
Diffstat (limited to 'scumm/object.cpp')
-rw-r--r-- | scumm/object.cpp | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp index 4b681770c0..a4abeb3121 100644 --- a/scumm/object.cpp +++ b/scumm/object.cpp @@ -124,26 +124,22 @@ void ScummEngine::putOwner(int obj, int owner) { _objectOwnerTable[obj] = owner; } -#ifndef BYPASS_COPY_PROT -#define BYPASS_COPY_PROT -#endif - int ScummEngine::getState(int obj) { checkRange(_numGlobalObjects - 1, 0, obj, "Object %d out of range in getState"); -#if defined(BYPASS_COPY_PROT) - // I knew LucasArts sold cracked copies of the original Maniac Mansion, - // at least as part of Day of the Tentacle. Apparently they also sold - // cracked versions of the enhanced version. At least in Germany. - // - // This will keep the security door open at all times. I can only - // assume that 182 and 193 each correspond to one particular side of - // the it. Fortunately it does not prevent frustrated players from - // blowing up the mansion, should they feel the urge to. - - if (_gameId == GID_MANIAC && (obj == 182 || obj == 193)) - _objectStateTable[obj] |= 0x08; -#endif + if (!_copyProtection) { + // I knew LucasArts sold cracked copies of the original Maniac Mansion, + // at least as part of Day of the Tentacle. Apparently they also sold + // cracked versions of the enhanced version. At least in Germany. + // + // This will keep the security door open at all times. I can only + // assume that 182 and 193 each correspond to one particular side of + // the it. Fortunately it does not prevent frustrated players from + // blowing up the mansion, should they feel the urge to. + + if (_gameId == GID_MANIAC && (obj == 182 || obj == 193)) + _objectStateTable[obj] |= 0x08; + } return _objectStateTable[obj]; } |