Hopefully right this time, last change caused a cheat (Free air travel)
svn-id: r11003
This commit is contained in:
parent
774b847a87
commit
2a11383523
2 changed files with 7 additions and 13 deletions
|
@ -428,25 +428,12 @@ void ScummEngine_v2::decodeParseString() {
|
|||
actorTalk();
|
||||
}
|
||||
|
||||
#ifndef BYPASS_COPY_PROT
|
||||
#define BYPASS_COPY_PROT
|
||||
#endif
|
||||
|
||||
int ScummEngine_v2::readVar(uint var) {
|
||||
if (var >= 14 && var <= 16)
|
||||
var = _scummVars[var];
|
||||
|
||||
checkRange(_numVariables - 1, 0, var, "Variable %d out of range(r)");
|
||||
debug(6, "readvar(%d) = %d", var, _scummVars[var]);
|
||||
|
||||
#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 == 244)
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
return _scummVars[var];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue