diff options
author | Max Horn | 2003-05-04 02:27:22 +0000 |
---|---|---|
committer | Max Horn | 2003-05-04 02:27:22 +0000 |
commit | aa74ea1d5ca4c553f882b288d1ecb1cc74e88b7e (patch) | |
tree | f519f8b132397ac1a5e803b1e1ab047453d420a1 /scumm/script.cpp | |
parent | 488d5fe351d4546023770cfee3e2bd76973614c7 (diff) | |
download | scummvm-rg350-aa74ea1d5ca4c553f882b288d1ecb1cc74e88b7e.tar.gz scummvm-rg350-aa74ea1d5ca4c553f882b288d1ecb1cc74e88b7e.tar.bz2 scummvm-rg350-aa74ea1d5ca4c553f882b288d1ecb1cc74e88b7e.zip |
yet more v2 fixes & cleanup
svn-id: r7302
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r-- | scumm/script.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index 181aad737a..e9bfd31a51 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -357,7 +357,7 @@ int Scumm::readVar(uint var) { #ifdef BYPASS_COPY_PROT static byte copyprotbypassed; #endif - debug(9, "readvar=%d", var); + debug(9, "readvar(%d)", var); if (!(var & 0xF000)) { #if defined(BYPASS_COPY_PROT) if (var == 490 && _gameId == GID_MONKEY2 && !copyprotbypassed) { @@ -486,18 +486,9 @@ void Scumm::writeVar(uint var, int value) { error("Illegal varbits (w)"); } -void Scumm::getResultPosDirect() { - _resultVarNumber = _vars[fetchScriptByte()]; -} - void Scumm::getResultPos() { int a; - if (_features & GF_AFTER_V2) { - _resultVarNumber = fetchScriptByte(); - return; - } - _resultVarNumber = fetchScriptWord(); if (_resultVarNumber & 0x2000) { a = fetchScriptWord(); |