diff options
-rw-r--r-- | scumm/script_v2.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index 650a80c5b2..fd4ddc2446 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -548,6 +548,10 @@ void ScummEngine_v2::o2_setBitVar() { } +#ifndef BYPASS_COPY_PROT +#define BYPASS_COPY_PROT +#endif + void ScummEngine_v2::o2_getBitVar() { getResultPos(); int var = fetchScriptWord(); @@ -557,7 +561,15 @@ void ScummEngine_v2::o2_getBitVar() { int bit_offset = bit_var & 0x0f; bit_var >>= 4; - setResult((_scummVars[bit_var] & (1 << bit_offset)) ? 1 : 0); +#if defined(BYPASS_COPY_PROT) + // The Enchanced version of Zak McKracken included in the + // SelectWare Classic Collection bundle has no copy protection + // and doesn't include the codes. + if (_gameId == GID_ZAK && var == 1467) + setResult(0); + else +#endif + setResult((_scummVars[bit_var] & (1 << bit_offset)) ? 1 : 0); } void ScummEngine_v2::ifStateCommon(byte type) { |