Skip to content

Commit

Permalink
TITANIC: Fixes for unlocking music system
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jan 13, 2017
1 parent 6e04b36 commit 92693a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions engines/titanic/core/game_object.cpp
Expand Up @@ -548,6 +548,10 @@ void CGameObject::sound8(bool flag) const {
}

void CGameObject::setVisible(bool val) {
if (_name.contains("ylinder")) {
warning("TODO");
}

if (val != _visible) {
_visible = val;
makeDirty();
Expand Down
6 changes: 4 additions & 2 deletions engines/titanic/game/music_system_lock.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 92693a9

Please sign in to comment.