aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2017-01-16 19:07:15 -0500
committerPaul Gilbert2017-01-16 19:07:15 -0500
commit6a955be8ac1394b5257c98a9500fda9f4343c39e (patch)
treeb37a2f43ab1d89175ef8456e720d25d33d362477
parent13422c315188075f2fdbe20543610239150cf347 (diff)
downloadscummvm-rg350-6a955be8ac1394b5257c98a9500fda9f4343c39e.tar.gz
scummvm-rg350-6a955be8ac1394b5257c98a9500fda9f4343c39e.tar.bz2
scummvm-rg350-6a955be8ac1394b5257c98a9500fda9f4343c39e.zip
TITANIC: Fix some Liftbot dialogue responses
-rw-r--r--engines/titanic/true_talk/liftbot_script.cpp6
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 {