aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/titles.cpp
diff options
context:
space:
mode:
authorD G Turner2011-12-28 01:31:24 +0000
committerD G Turner2011-12-28 01:31:24 +0000
commita09fdaa0b1daca086bbe6083be6d335cac11ad24 (patch)
tree709aa580681ccb4a3f31dbd705b2e8472f0d2fe3 /engines/dreamweb/titles.cpp
parentdb2e0fb0423b575151fde09256c9ccb10ee824e5 (diff)
downloadscummvm-rg350-a09fdaa0b1daca086bbe6083be6d335cac11ad24.tar.gz
scummvm-rg350-a09fdaa0b1daca086bbe6083be6d335cac11ad24.tar.bz2
scummvm-rg350-a09fdaa0b1daca086bbe6083be6d335cac11ad24.zip
DREAMWEB: Move 4 volume related variables out of data blob.
Diffstat (limited to 'engines/dreamweb/titles.cpp')
-rw-r--r--engines/dreamweb/titles.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/engines/dreamweb/titles.cpp b/engines/dreamweb/titles.cpp
index f30283e45a..529f400ff6 100644
--- a/engines/dreamweb/titles.cpp
+++ b/engines/dreamweb/titles.cpp
@@ -30,8 +30,8 @@ void DreamBase::endGame() {
monkSpeaking();
gettingShot();
getRidOfTempText();
- data.byte(kVolumeto) = 7;
- data.byte(kVolumedirection) = 1;
+ _volumeTo = 7;
+ _volumeDirection = 1;
hangOn(200);
}
@@ -44,9 +44,9 @@ void DreamBase::monkSpeaking() {
clearWork();
showFrame(_tempGraphics, 160, 72, 0, 128); // show monk
workToScreen();
- data.byte(kVolume) = 7;
- data.byte(kVolumedirection) = (byte)-1;
- data.byte(kVolumeto) = 5;
+ _volume = 7;
+ _volumeDirection = -1;
+ _volumeTo = 5;
playChannel0(12, 255);
fadeScreenUps();
hangOn(300);
@@ -61,8 +61,8 @@ void DreamBase::monkSpeaking() {
} while (_channel1Playing != 255);
}
- data.byte(kVolumedirection) = 1;
- data.byte(kVolumeto) = 7;
+ _volumeDirection = 1;
+ _volumeTo = 7;
fadeScreenDowns();
hangOn(300);
getRidOfTemp();
@@ -73,8 +73,8 @@ void DreamBase::gettingShot() {
clearPalette();
loadIntroRoom();
fadeScreenUps();
- data.byte(kVolumeto) = 0;
- data.byte(kVolumedirection) = (byte)-1;
+ _volumeTo = 0;
+ _volumeDirection = -1;
runEndSeq();
clearBeforeLoad();
}
@@ -125,9 +125,9 @@ void DreamBase::intro() {
data.byte(kNewlocation) = 50;
clearPalette();
loadIntroRoom();
- data.byte(kVolume) = 7;
- data.byte(kVolumedirection) = (byte)-1;
- data.byte(kVolumeto) = 4;
+ _volume = 7;
+ _volumeDirection = -1;
+ _volumeTo = 4;
playChannel0(12, 255);
fadeScreenUps();
runIntroSeq();
@@ -265,7 +265,7 @@ void DreamBase::set16ColPalette() {
void DreamBase::realCredits() {
_roomsSample = 33;
loadRoomsSample();
- data.byte(kVolume) = 0;
+ _volume = 0;
initGraphics(640, 480, true);
hangOn(35);