diff options
author | Max Horn | 2003-05-05 09:19:15 +0000 |
---|---|---|
committer | Max Horn | 2003-05-05 09:19:15 +0000 |
commit | fa0df19a1df16489b7319bfd27711409c15fa699 (patch) | |
tree | 9b36f360ff75688c952163a558f4e53994bb8620 /scumm/script.cpp | |
parent | 93c7422879480c83aeb2fd01a313563975c90594 (diff) | |
download | scummvm-rg350-fa0df19a1df16489b7319bfd27711409c15fa699.tar.gz scummvm-rg350-fa0df19a1df16489b7319bfd27711409c15fa699.tar.bz2 scummvm-rg350-fa0df19a1df16489b7319bfd27711409c15fa699.zip |
cleanup / reduced code duplication
svn-id: r7339
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r-- | scumm/script.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index ac97e4343f..4ff48ffca8 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -330,24 +330,6 @@ int Scumm::fetchScriptWordSigned() { return (int16)fetchScriptWord(); } -int Scumm::getVarOrDirectByte(byte mask) { - if (_opcode & mask) - if (_features & GF_AFTER_V2) - return readVar(fetchScriptByte()); - else - return readVar(fetchScriptWord()); - return fetchScriptByte(); -} - -int Scumm::getVarOrDirectWord(byte mask) { - if (_opcode & mask) - if (_features & GF_AFTER_V2) - return readVar(fetchScriptByte()); - else - return readVar(fetchScriptWord()); - return (int16)fetchScriptWord(); -} - #ifndef BYPASS_COPY_PROT #define BYPASS_COPY_PROT #endif |