diff options
Diffstat (limited to 'engines/titanic/true_talk/liftbot_script.cpp')
-rw-r--r-- | engines/titanic/true_talk/liftbot_script.cpp | 6 |
1 files 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 { |