diff options
author | Bertrand Augereau | 2011-11-21 14:33:36 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-21 14:33:36 +0100 |
commit | 34d85734e65ccf7103f06fc7682921da5d16ab8d (patch) | |
tree | ff7a7e943bb07378bed00691e3828f1084cdf2e8 /engines/dreamweb/sprite.cpp | |
parent | 1e80ac08858ecbf2c32f906f4eb0552bf5bee666 (diff) | |
download | scummvm-rg350-34d85734e65ccf7103f06fc7682921da5d16ab8d.tar.gz scummvm-rg350-34d85734e65ccf7103f06fc7682921da5d16ab8d.tar.bz2 scummvm-rg350-34d85734e65ccf7103f06fc7682921da5d16ab8d.zip |
DREAMWEB: Stub wrappers with a better signature for 'playchannel[0|1]'
Diffstat (limited to 'engines/dreamweb/sprite.cpp')
-rw-r--r-- | engines/dreamweb/sprite.cpp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/engines/dreamweb/sprite.cpp b/engines/dreamweb/sprite.cpp index 0200a9f88a..06b6739b3b 100644 --- a/engines/dreamweb/sprite.cpp +++ b/engines/dreamweb/sprite.cpp @@ -321,11 +321,12 @@ void DreamGenContext::dodoor(Sprite *sprite, SetObject *objData, Common::Rect ch ++sprite->animFrame; if (sprite->animFrame == 1) { // doorsound2 + uint8 soundIndex; if (data.byte(kReallocation) == 5) // hoteldoor2 - al = 13; + soundIndex = 13; else - al = 0; - playchannel1(); + soundIndex = 0; + playchannel1(soundIndex); } if (objData->frames[sprite->animFrame] == 255) --sprite->animFrame; @@ -337,11 +338,12 @@ void DreamGenContext::dodoor(Sprite *sprite, SetObject *objData, Common::Rect ch // shut door if (sprite->animFrame == 5) { // doorsound1; + uint8 soundIndex; if (data.byte(kReallocation) == 5) // hoteldoor1 - al = 13; + soundIndex = 13; else - al = 1; - playchannel1(); + soundIndex = 1; + playchannel1(soundIndex); } if (sprite->animFrame != 0) --sprite->animFrame; @@ -373,8 +375,7 @@ void DreamGenContext::lockeddoorway(Sprite *sprite, SetObject *objData) { if (openDoor) { if (sprite->animFrame == 1) { - al = 0; - playchannel1(); + playchannel1(0); } if (sprite->animFrame == 6) @@ -395,8 +396,7 @@ void DreamGenContext::lockeddoorway(Sprite *sprite, SetObject *objData) { // shut door if (sprite->animFrame == 5) { - al = 1; - playchannel1(); + playchannel1(1); } if (sprite->animFrame != 0) @@ -559,11 +559,12 @@ void DreamGenContext::showrain() { if (engine->randomNumber() >= 1) // play thunder with 1 in 256 chance return; + uint8 soundIndex; if (data.byte(kCh0playing) != 6) - al = 4; + soundIndex = 4; else - al = 7; - playchannel1(); + soundIndex = 7; + playchannel1(soundIndex); } static void (DreamGenContext::*reelCallbacks[])() = { |