aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/barbot_script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/true_talk/barbot_script.cpp')
-rw-r--r--engines/titanic/true_talk/barbot_script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/true_talk/barbot_script.cpp b/engines/titanic/true_talk/barbot_script.cpp
index ad10f5a57f..14e92e7975 100644
--- a/engines/titanic/true_talk/barbot_script.cpp
+++ b/engines/titanic/true_talk/barbot_script.cpp
@@ -748,7 +748,7 @@ done:
return 2;
}
- addResponse(getDialogueId(250082 + getRandomNumber(100) <= 89 ? 128 : 0));
+ addResponse(getDialogueId(250082 + (getRandomNumber(100) <= 89 ? 128 : 0)));
}
}
@@ -776,7 +776,7 @@ ScriptChangedResult BarbotScript::scriptChanged(const TTroomScript *roomScript,
resetFlags();
} else {
if (!getValue(28) || !fn10(true)) {
- addResponse(getDialogueId(251627 + getValue(28) ? -1034 : 0));
+ addResponse(getDialogueId(251627 + (getValue(28) ? -1034 : 0)));
applyResponse();
}