diff options
author | Filippos Karapetis | 2011-12-27 10:43:44 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-27 10:43:44 +0200 |
commit | 4c9a6006180c5fc8df1887b96cea2eacc321bc73 (patch) | |
tree | 1a40c4061afe4a30a8ba27d9719b89a93ed92f9e /engines/dreamweb/sound.cpp | |
parent | 51d0a07902fa994f929d3dd9350a2ecd40330823 (diff) | |
download | scummvm-rg350-4c9a6006180c5fc8df1887b96cea2eacc321bc73.tar.gz scummvm-rg350-4c9a6006180c5fc8df1887b96cea2eacc321bc73.tar.bz2 scummvm-rg350-4c9a6006180c5fc8df1887b96cea2eacc321bc73.zip |
DREAMWEB: Remove dead code
Diffstat (limited to 'engines/dreamweb/sound.cpp')
-rw-r--r-- | engines/dreamweb/sound.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/engines/dreamweb/sound.cpp b/engines/dreamweb/sound.cpp index 23a12c2b30..1eefedaae2 100644 --- a/engines/dreamweb/sound.cpp +++ b/engines/dreamweb/sound.cpp @@ -57,12 +57,8 @@ void DreamBase::volumeAdjust() { void DreamBase::playChannel0(uint8 index, uint8 repeat) { data.byte(kCh0playing) = index; - Sound *soundBank; - if (index >= 12) { - soundBank = (Sound *)getSegment(data.word(kSounddata2)).ptr(0, 0); + if (index >= 12) index -= 12; - } else - soundBank = (Sound *)getSegment(data.word(kSounddata)).ptr(0, 0); data.byte(kCh0repeat) = repeat; } @@ -72,12 +68,8 @@ void DreamBase::playChannel1(uint8 index) { return; data.byte(kCh1playing) = index; - Sound *soundBank; - if (index >= 12) { - soundBank = (Sound *)getSegment(data.word(kSounddata2)).ptr(0, 0); + if (index >= 12) index -= 12; - } else - soundBank = (Sound *)getSegment(data.word(kSounddata)).ptr(0, 0); } void DreamBase::cancelCh0() { |