diff options
author | Paul Gilbert | 2017-10-12 21:58:34 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-10-12 21:58:34 -0400 |
commit | 44aaaf43b8bd3ca32ffde185f4d9f6dd18ab2d5c (patch) | |
tree | 7d5ee945555e71b55309c0d26326bf8ff4e6cb97 /engines/titanic/game/transport | |
parent | b2ebaf008e3c8d120e900eccd44e7f9ffc7ab973 (diff) | |
download | scummvm-rg350-44aaaf43b8bd3ca32ffde185f4d9f6dd18ab2d5c.tar.gz scummvm-rg350-44aaaf43b8bd3ca32ffde185f4d9f6dd18ab2d5c.tar.bz2 scummvm-rg350-44aaaf43b8bd3ca32ffde185f4d9f6dd18ab2d5c.zip |
TITANIC: Play Pellerator sound only when moving to a new destination
Diffstat (limited to 'engines/titanic/game/transport')
-rw-r--r-- | engines/titanic/game/transport/pellerator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/titanic/game/transport/pellerator.cpp b/engines/titanic/game/transport/pellerator.cpp index 9958226c6b..64d0fadfe5 100644 --- a/engines/titanic/game/transport/pellerator.cpp +++ b/engines/titanic/game/transport/pellerator.cpp @@ -69,7 +69,6 @@ void CPellerator::load(SimpleFile *file) { bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) { setVisible(true); - playGlobalSound(TRANSLATE("z#74.wav", "z#605.wav"), VOL_QUIET, true, true, 0); int classNum = getPassengerClass(); int newDest = msg->_newStatus; @@ -78,6 +77,8 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) { } else if (classNum == 3 || (msg->_newStatus > 4 && classNum != 1)) { petDisplayMessage(1, CLASS_NOT_ALLOWED_AT_DEST); } else if (newDest > _destination) { + playGlobalSound(TRANSLATE("z#74.wav", "z#605.wav"), VOL_QUIET, true, true, 0); + CString name = getName(); changeView(name == "PelleratorObject2" ? "Pellerator.Node 1.N" : "Pellerator.Node 1.S"); @@ -179,6 +180,8 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) { playMovie(264, 264, MOVIE_NOTIFY_OBJECT); _destination = newDest; } else if (newDest < _destination) { + playGlobalSound(TRANSLATE("z#74.wav", "z#605.wav"), VOL_QUIET, true, true, 0); + CString name = getName(); changeView(name == "PelleratorObject2" ? "Pellerator.Node 1.N" : "Pellerator.Node 1.S"); |