diff options
author | Paul Gilbert | 2017-01-09 19:36:13 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-01-09 19:36:13 -0500 |
commit | ec8845a6bfbf2f3ea3b8d64a860de1bb3e745178 (patch) | |
tree | cf1246b933ca05acbbae791cae45a5e38890897f /engines/titanic | |
parent | 677dd99bdb564b86c93657fb0e8c3cf1cd5f612d (diff) | |
download | scummvm-rg350-ec8845a6bfbf2f3ea3b8d64a860de1bb3e745178.tar.gz scummvm-rg350-ec8845a6bfbf2f3ea3b8d64a860de1bb3e745178.tar.bz2 scummvm-rg350-ec8845a6bfbf2f3ea3b8d64a860de1bb3e745178.zip |
TITANIC: Fix Barbot's introduction spiel
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/true_talk/barbot_script.cpp | 4 |
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(); } |