aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_control.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-23 19:03:55 -0400
committerPaul Gilbert2016-07-10 16:11:52 -0400
commitf6f68e547d39957fc4678859a95cbec839cc41e4 (patch)
tree12a9c5c9af3fa758119959c56fcb17ef48305c19 /engines/titanic/pet_control/pet_control.cpp
parenta8d4e827d23110e978319a2a6d7f036d16c7f66a (diff)
downloadscummvm-rg350-f6f68e547d39957fc4678859a95cbec839cc41e4.tar.gz
scummvm-rg350-f6f68e547d39957fc4678859a95cbec839cc41e4.tar.bz2
scummvm-rg350-f6f68e547d39957fc4678859a95cbec839cc41e4.zip
TITANIC: Implement changing sound slider percentages
Diffstat (limited to 'engines/titanic/pet_control/pet_control.cpp')
-rw-r--r--engines/titanic/pet_control/pet_control.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp
index 0bba2c2330..145543fb07 100644
--- a/engines/titanic/pet_control/pet_control.cpp
+++ b/engines/titanic/pet_control/pet_control.cpp
@@ -423,4 +423,12 @@ void CPetControl::moveToHiddenRoom(CTreeItem *item) {
}
}
+void CPetControl::playSound(int soundNum) {
+ CTreeItem *player = getHiddenObject("PETSoundPlayer");
+ if (player) {
+ CPETPlaySoundMsg playMsg(soundNum);
+ playMsg.execute(player);
+ }
+}
+
} // End of namespace Titanic