diff options
author | Travis Howell | 2012-06-09 15:36:47 +1000 |
---|---|---|
committer | Travis Howell | 2012-06-09 15:36:47 +1000 |
commit | 3968f3194893d88d1a8d73eef535b801e5415765 (patch) | |
tree | 727c81be5741b23e078ddf868908a646736c23eb /engines/scumm/he | |
parent | 8675f510012d0ebbd02e7f90adf6c7195a7f9e4b (diff) | |
download | scummvm-rg350-3968f3194893d88d1a8d73eef535b801e5415765.tar.gz scummvm-rg350-3968f3194893d88d1a8d73eef535b801e5415765.tar.bz2 scummvm-rg350-3968f3194893d88d1a8d73eef535b801e5415765.zip |
SCUMM: Add HE101 version, for debugInput opcode difference in some HE100 games.
Diffstat (limited to 'engines/scumm/he')
-rw-r--r-- | engines/scumm/he/script_v100he.cpp | 5 | ||||
-rw-r--r-- | engines/scumm/he/sound_he.cpp | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/scumm/he/script_v100he.cpp b/engines/scumm/he/script_v100he.cpp index d2e01a6564..3e2053790e 100644 --- a/engines/scumm/he/script_v100he.cpp +++ b/engines/scumm/he/script_v100he.cpp @@ -2339,8 +2339,9 @@ void ScummEngine_v100he::o100_writeFile() { } void ScummEngine_v100he::o100_debugInput() { - // Backyard Basketball uses older code for this opcode - if (_game.id == GID_BASKETBALL) { + // Backyard Baseball 2003 / Basketball / Football 2002 + // use older o72_debugInput code + if (_game.heversion == 101) { ScummEngine_v72he::o72_debugInput(); return; } diff --git a/engines/scumm/he/sound_he.cpp b/engines/scumm/he/sound_he.cpp index 1007d2a7b0..f94b74ac45 100644 --- a/engines/scumm/he/sound_he.cpp +++ b/engines/scumm/he/sound_he.cpp @@ -65,7 +65,7 @@ void SoundHE::addSoundToQueue(int sound, int heOffset, int heChannel, int heFlag if (_vm->VAR_LAST_SOUND != 0xFF) _vm->VAR(_vm->VAR_LAST_SOUND) = sound; - if ((_vm->_game.heversion <= 99 && (heFlags & 16)) || (_vm->_game.heversion == 100 && (heFlags & 8))) { + if ((_vm->_game.heversion <= 99 && (heFlags & 16)) || (_vm->_game.heversion >= 100 && (heFlags & 8))) { playHESound(sound, heOffset, heChannel, heFlags); return; } else { |