From 9fa97cd1197746688b5d55b7788f323b65bd5825 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 3 Sep 2017 23:18:04 -0400 Subject: TITANIC: Fix Doorbot disappearing in prologue elevator --- engines/titanic/npcs/doorbot.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/engines/titanic/npcs/doorbot.cpp b/engines/titanic/npcs/doorbot.cpp index 066191ed56..94c5e2c725 100644 --- a/engines/titanic/npcs/doorbot.cpp +++ b/engines/titanic/npcs/doorbot.cpp @@ -552,14 +552,14 @@ bool CDoorbot::TextInputMsg(CTextInputMsg *msg) { } bool CDoorbot::EnterViewMsg(CEnterViewMsg *msg) { - // WORKAROUND: Calling bot in front of doors and then going through them - // can leave it in the view. Detect this and properly remove him when - // the player returns to that view - if (msg->_newView == getParent() && getPetControl()->canSummonBot("DoorBot")) - petMoveToHiddenRoom(); - if ((_npcFlags & NPCFLAG_DOORBOT_INTRO) && _introMovieNum == 7) playClip("SE Move And Turn", MOVIE_NOTIFY_OBJECT); + else if (msg->_newView == getParent() && getPetControl()->canSummonBot("DoorBot")) { + // WORKAROUND: Calling bot in front of doors and then going through them + // can leave it in the view. Detect this and properly remove him when + // the player returns to that view + petMoveToHiddenRoom(); + } return true; } -- cgit v1.2.3