From 7e74c575da51193ac5be212b8b4a5dae2b011200 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 24 Jul 2017 21:02:50 -0400 Subject: TITANIC: Fix conversation with Liftbot not working after twirling around --- engines/titanic/core/game_object.cpp | 2 +- engines/titanic/true_talk/liftbot_script.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp index 870e9d420d..3619d56330 100644 --- a/engines/titanic/core/game_object.cpp +++ b/engines/titanic/core/game_object.cpp @@ -1274,7 +1274,7 @@ bool CGameObject::clipExistsByEnd(const CString &name, int endFrame) const { void CGameObject::petClear() const { CPetControl *petControl = getPetControl(); if (petControl) - petControl->resetActiveNPC(); + petControl->resetRemoteTarget(); } CDontSaveFileItem *CGameObject::getDontSave() const { diff --git a/engines/titanic/true_talk/liftbot_script.cpp b/engines/titanic/true_talk/liftbot_script.cpp index 237f6286eb..5f0f6fbb66 100644 --- a/engines/titanic/true_talk/liftbot_script.cpp +++ b/engines/titanic/true_talk/liftbot_script.cpp @@ -359,7 +359,7 @@ uint LiftbotScript::getDialsBitset() const { int LiftbotScript::doSentenceEntry(int val1, const int *srcIdP, const TTroomScript *roomScript, const TTsentence *sentence) { // Responses for each floor when asked "what floor are we on" static const int FLOOR_RESPONSE_IDS[] = { - 210724, 210735, 210746, 210757, 210758, 210759, 210760, + 0, 210724, 210735, 210746, 210757, 210758, 210759, 210760, 210761, 210762, 210725, 210726, 210727, 210728, 210729, 210730, 210731, 210732, 210733, 210734, 210736, 210737, 210738, 210739, 210740, 210741, 210742, 210743, 210744, @@ -428,7 +428,7 @@ int LiftbotScript::doSentenceEntry(int val1, const int *srcIdP, const TTroomScri break; case 13: // What floor am I on - selectResponse(FLOOR_RESPONSE_IDS[getCurrentFloor() - 1]); + selectResponse(FLOOR_RESPONSE_IDS[getCurrentFloor()]); applyResponse(); return 2; case 14: -- cgit v1.2.3