diff options
Diffstat (limited to 'engines/titanic/true_talk/liftbot_script.cpp')
-rw-r--r-- | engines/titanic/true_talk/liftbot_script.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/titanic/true_talk/liftbot_script.cpp b/engines/titanic/true_talk/liftbot_script.cpp index ab995b71b9..e52e47d99d 100644 --- a/engines/titanic/true_talk/liftbot_script.cpp +++ b/engines/titanic/true_talk/liftbot_script.cpp @@ -92,7 +92,7 @@ int LiftbotScript::process(const TTroomScript *roomScript, const TTsentence *sen checkItems(roomScript, sentence); int currState = getState(); - int sentMode = sentence->_field2C; + int sentMode = sentence->_category; TTtreeResult treeResult; if (currState) { @@ -180,6 +180,7 @@ ScriptChangedResult LiftbotScript::scriptChanged(const TTroomScript *roomScript, addResponse(getDialogueId(210033)); } CTrueTalkManager::setFlags(27, 1); + applyResponse(); break; case 155: @@ -580,14 +581,14 @@ int LiftbotScript::sentence1(const TTsentence *sentence) { return 1; } - int classNum = 1; + PassengerClass classNum = FIRST_CLASS; bool classSet = true; if (sentence->localWord("firstclass")) - classNum = 1; + classNum = FIRST_CLASS; else if (sentence->localWord("secondclass")) - classNum = 2; + classNum = SECOND_CLASS; else if (sentence->localWord("thirdclass")) - classNum = 3; + classNum = THIRD_CLASS; else classSet = false; @@ -650,7 +651,7 @@ int LiftbotScript::sentence1(const TTsentence *sentence) { return 1; } - if (sentence->_field2C == 4 || sentence->localWord("find") + if (sentence->_category == 4 || sentence->localWord("find") || sentence->contains("get to")) { if (getCurrentFloor() != diff) { selectResponse(diff == 1 ? 210769 : 210764); |