From ec8845a6bfbf2f3ea3b8d64a860de1bb3e745178 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 9 Jan 2017 19:36:13 -0500 Subject: TITANIC: Fix Barbot's introduction spiel --- engines/titanic/true_talk/barbot_script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/titanic/true_talk/barbot_script.cpp') 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(); } -- cgit v1.2.3