aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/barbot_script.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-01-09 19:36:13 -0500
committerPaul Gilbert2017-01-09 19:36:13 -0500
commitec8845a6bfbf2f3ea3b8d64a860de1bb3e745178 (patch)
treecf1246b933ca05acbbae791cae45a5e38890897f /engines/titanic/true_talk/barbot_script.cpp
parent677dd99bdb564b86c93657fb0e8c3cf1cd5f612d (diff)
downloadscummvm-rg350-ec8845a6bfbf2f3ea3b8d64a860de1bb3e745178.tar.gz
scummvm-rg350-ec8845a6bfbf2f3ea3b8d64a860de1bb3e745178.tar.bz2
scummvm-rg350-ec8845a6bfbf2f3ea3b8d64a860de1bb3e745178.zip
TITANIC: Fix Barbot's introduction spiel
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();
}