Skip to content

Commit

Permalink
DREAMWEB: Set volumeDirection as a negative integer, where this is us…
Browse files Browse the repository at this point in the history
…ed, instead of 0xFF
  • Loading branch information
bluegr committed Dec 12, 2011
1 parent d41c891 commit a682734
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion engines/dreamweb/sprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ void DreamBase::rollEndCredits() {
playChannel0(16, 255);
data.byte(kVolume) = 7;
data.byte(kVolumeto) = 0;
data.byte(kVolumedirection) = 0xFF;
data.byte(kVolumedirection) = (byte)-1;

multiGet(mapStore(), 75, 20, 160, 160);

Expand Down
10 changes: 5 additions & 5 deletions engines/dreamweb/stubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ void DreamGenContext::dreamweb() {
data.byte(kLastflag) = 32;
startup1();
data.byte(kVolumeto) = 0;
data.byte(kVolumedirection) = (uint8)-1;
data.byte(kVolumedirection) = (byte)-1;
data.byte(kCommandtype) = 255;

}
Expand Down Expand Up @@ -3070,7 +3070,7 @@ void DreamGenContext::intro() {
clearPalette();
loadIntroRoom();
data.byte(kVolume) = 7;
data.byte(kVolumedirection) = (uint8)-1;
data.byte(kVolumedirection) = (byte)-1;
data.byte(kVolumeto) = 4;
playChannel0(12, 255);
fadeScreenUps();
Expand Down Expand Up @@ -3286,7 +3286,7 @@ void DreamGenContext::gettingShot() {
loadIntroRoom();
fadeScreenUps();
data.byte(kVolumeto) = 0;
data.byte(kVolumedirection) = 0xFF;
data.byte(kVolumedirection) = (byte)-1;
runEndSeq();
clearBeforeLoad();
}
Expand Down Expand Up @@ -3935,7 +3935,7 @@ void DreamGenContext::talk() {
workToScreenM();
if (data.byte(kSpeechloaded) == 1) {
cancelCh1();
data.byte(kVolumedirection) = 0xFF;
data.byte(kVolumedirection) = (byte)-1;
data.byte(kVolumeto) = 0;
}
}
Expand Down Expand Up @@ -4258,7 +4258,7 @@ void DreamGenContext::monkSpeaking() {
showFrame(tempGraphics(), 160, 72, 0, 128); // show monk
workToScreen();
data.byte(kVolume) = 7;
data.byte(kVolumedirection) = 0xFF;
data.byte(kVolumedirection) = (byte)-1;
data.byte(kVolumeto) = 5;
playChannel0(12, 255);
fadeScreenUps();
Expand Down

0 comments on commit a682734

Please sign in to comment.