aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/music_system_lock.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-01-12 20:18:20 -0500
committerPaul Gilbert2017-01-12 20:18:20 -0500
commit92693a9ccd25f06608c21a907732f1a9c8fe82a2 (patch)
treeace5f386e45b2e89e2289076d76556338dc3a77b /engines/titanic/game/music_system_lock.cpp
parent6e04b361b242a8c50ad4e5c7f757a00b167e27e3 (diff)
downloadscummvm-rg350-92693a9ccd25f06608c21a907732f1a9c8fe82a2.tar.gz
scummvm-rg350-92693a9ccd25f06608c21a907732f1a9c8fe82a2.tar.bz2
scummvm-rg350-92693a9ccd25f06608c21a907732f1a9c8fe82a2.zip
TITANIC: Fixes for unlocking music system
Diffstat (limited to 'engines/titanic/game/music_system_lock.cpp')
-rw-r--r--engines/titanic/game/music_system_lock.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/titanic/game/music_system_lock.cpp b/engines/titanic/game/music_system_lock.cpp
index 074864e7c3..e28882f600 100644
--- a/engines/titanic/game/music_system_lock.cpp
+++ b/engines/titanic/game/music_system_lock.cpp
@@ -50,14 +50,16 @@ bool CMusicSystemLock::DropObjectMsg(CDropObjectMsg *msg) {
playMovie(MOVIE_NOTIFY_OBJECT);
}
- return true;
+ return false;
}
bool CMusicSystemLock::MovieEndMsg(CMovieEndMsg *msg) {
CTreeItem *phonograph = findRoom()->findByName("Restaurant Phonograph");
+
+ // Toggle the locked status of the music system
CQueryPhonographState queryMsg;
queryMsg.execute(phonograph);
- CLockPhonographMsg lockMsg(queryMsg._value);
+ CLockPhonographMsg lockMsg(!queryMsg._value);
lockMsg.execute(phonograph, nullptr, MSGFLAG_SCAN);
setVisible(false);