From 6a955be8ac1394b5257c98a9500fda9f4343c39e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 16 Jan 2017 19:07:15 -0500 Subject: TITANIC: Fix some Liftbot dialogue responses --- engines/titanic/true_talk/liftbot_script.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/titanic/true_talk/liftbot_script.cpp b/engines/titanic/true_talk/liftbot_script.cpp index e52e47d99d..c77885e3ab 100644 --- a/engines/titanic/true_talk/liftbot_script.cpp +++ b/engines/titanic/true_talk/liftbot_script.cpp @@ -506,7 +506,7 @@ int LiftbotScript::addResponse1(int index, bool flag, int id) { return 1; } else if (index == getCurrentFloor()) { if (index == 1) { - addResponse(30558 - getRandomBit() ? 290 : 0); + addResponse(30558 - (getRandomBit() ? 290 : 0)); addResponse(getDialogueId(210589)); } else { if (index == 39) @@ -535,7 +535,7 @@ int LiftbotScript::addResponse1(int index, bool flag, int id) { if (flag) { if (index == 1) { - selectResponse(30558 - getRandomBit() ? 290 : 0); + selectResponse(30558 - (getRandomBit() ? 290 : 0)); } else if (index == 39) { addResponse(30346); } else { @@ -619,7 +619,7 @@ int LiftbotScript::sentence1(const TTsentence *sentence) { } else if (sentence->localWord("titaniaroom")) { newId = 210723; } else if (sentence->localWord("restaurant")) { - if (classNum == 1) { + if (classNum == FIRST_CLASS) { newId = 210719; diff = 1; } else { -- cgit v1.2.3