diff options
author | Paul Gilbert | 2017-01-22 16:32:48 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-01-22 16:32:48 -0500 |
commit | 4847fd49a9cf1c406dc29ff0c29538e467e9d84b (patch) | |
tree | 046395e68f1c051151bf80c5a2089dbe2276f627 /engines/titanic/npcs/bilge_succubus.cpp | |
parent | fac26795b66eaeb5fd3c3adf946e8c6c216a85ff (diff) | |
download | scummvm-rg350-4847fd49a9cf1c406dc29ff0c29538e467e9d84b.tar.gz scummvm-rg350-4847fd49a9cf1c406dc29ff0c29538e467e9d84b.tar.bz2 scummvm-rg350-4847fd49a9cf1c406dc29ff0c29538e467e9d84b.zip |
TITANIC: Fixes for sending via the Bilge SuccUBus
Diffstat (limited to 'engines/titanic/npcs/bilge_succubus.cpp')
-rw-r--r-- | engines/titanic/npcs/bilge_succubus.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/titanic/npcs/bilge_succubus.cpp b/engines/titanic/npcs/bilge_succubus.cpp index 8995d4b075..f9dc5fa258 100644 --- a/engines/titanic/npcs/bilge_succubus.cpp +++ b/engines/titanic/npcs/bilge_succubus.cpp @@ -119,8 +119,8 @@ bool CBilgeSuccUBus::PETDeliverMsg(CPETDeliverMsg *msg) { _sendLost = false; _mailP = mailObject; - uint roomFlags = _roomFlags; - if (!pet->isSuccUBusDest(roomFlags) || pet->getMailDestClass(roomFlags) < getPassengerClass()) { + uint roomFlags = _destRoomFlags; + if (!pet->isSuccUBusDest(roomFlags) || getPassengerClass() > pet->getMailDestClass(roomFlags)) { roomFlags = pet->getSpecialRoomFlags("BilgeRoom"); _sendLost = true; } @@ -208,15 +208,15 @@ bool CBilgeSuccUBus::MovieEndMsg(CMovieEndMsg *msg) { } else if (msg->_endFrame == _sendEndFrame) { switch (_sendAction) { - case 1: - stopSound(_soundHandle); - _soundHandle = playSound("z#3.wav"); + case SA_EATEN: + stopSound(_soundHandle, 1); + _soundHandle = playSound("z#3.wav", 1); break; - case 2: + case SA_BILGE_FEATHERS: stopSound(_soundHandle); _soundHandle = playSound("z#12.wav"); break; - case 3: + case SA_BILGE_SENT: if (_isChicken) { startTalking(this, 230018); _isChicken = false; @@ -224,7 +224,7 @@ bool CBilgeSuccUBus::MovieEndMsg(CMovieEndMsg *msg) { startTalking(this, 230013); } break; - case 4: + case SA_BILGE_EATEN: startTalking(this, 230017); break; default: |