aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/sprite.cpp
diff options
context:
space:
mode:
authorD G Turner2011-12-27 23:49:35 +0000
committerD G Turner2011-12-27 23:49:35 +0000
commit56191e3928ef78a09ff3549f06d4e0ea795a5863 (patch)
tree8294ad02ad189b6d8dc699e0c3771a99204b9d6c /engines/dreamweb/sprite.cpp
parent4ac19d8870d4c154f10f3e4288986b387a08fd41 (diff)
downloadscummvm-rg350-56191e3928ef78a09ff3549f06d4e0ea795a5863.tar.gz
scummvm-rg350-56191e3928ef78a09ff3549f06d4e0ea795a5863.tar.bz2
scummvm-rg350-56191e3928ef78a09ff3549f06d4e0ea795a5863.zip
DREAMWEB: Move 3 sound related variables out of data blob.
Diffstat (limited to 'engines/dreamweb/sprite.cpp')
-rw-r--r--engines/dreamweb/sprite.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/dreamweb/sprite.cpp b/engines/dreamweb/sprite.cpp
index d1b7934a2e..cc7631439a 100644
--- a/engines/dreamweb/sprite.cpp
+++ b/engines/dreamweb/sprite.cpp
@@ -495,7 +495,7 @@ void DreamBase::showRain() {
}
}
- if (data.byte(kCh1playing) != 255)
+ if (_channel1Playing != 255)
return;
if (data.byte(kReallocation) == 2 && data.byte(kBeenmugged) != 1)
return;
@@ -506,7 +506,7 @@ void DreamBase::showRain() {
return;
uint8 soundIndex;
- if (data.byte(kCh0playing) != 6)
+ if (_channel0Playing != 6)
soundIndex = 4;
else
soundIndex = 7;
@@ -677,7 +677,7 @@ void DreamBase::intro1Text() {
if (data.byte(kIntrocount) != 2 && data.byte(kIntrocount) != 4 && data.byte(kIntrocount) != 6)
return;
- if (isCD() && data.byte(kCh1playing) != 255) {
+ if (isCD() && _channel1Playing != 255) {
data.byte(kIntrocount)--;
} else {
if (data.byte(kIntrocount) == 2)
@@ -750,7 +750,7 @@ void DreamBase::textForEnd() {
}
void DreamBase::textForMonkHelper(uint8 textIndex, uint8 voiceIndex, uint8 x, uint8 y, uint16 countToTimed, uint16 timeCount) {
- if (isCD() && data.byte(kCh1playing) != 255)
+ if (isCD() && _channel1Playing != 255)
data.byte(kIntrocount)--;
else
setupTimedTemp(textIndex, voiceIndex, x, y, countToTimed, timeCount);