diff options
author | Paul Gilbert | 2017-10-02 20:20:32 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-10-02 20:20:32 -0400 |
commit | da6b280922136ecc3e49670d1a276036a9a519d2 (patch) | |
tree | bc98d4fb9d42fdf25c21442a1657db739be5b82a | |
parent | ade8aadd3c291b7b33e8004ca168b70dfbe325cb (diff) | |
download | scummvm-rg350-da6b280922136ecc3e49670d1a276036a9a519d2.tar.gz scummvm-rg350-da6b280922136ecc3e49670d1a276036a9a519d2.tar.bz2 scummvm-rg350-da6b280922136ecc3e49670d1a276036a9a519d2.zip |
TITANIC: DE: Fix upgrading to 1st class
-rw-r--r-- | engines/titanic/true_talk/deskbot_script.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/engines/titanic/true_talk/deskbot_script.cpp b/engines/titanic/true_talk/deskbot_script.cpp index f45b1b1358..cf832a1eab 100644 --- a/engines/titanic/true_talk/deskbot_script.cpp +++ b/engines/titanic/true_talk/deskbot_script.cpp @@ -396,9 +396,11 @@ int DeskbotScript::doSentenceEntry(int val1, const int *srcIdP, const TTroomScri case 1: id = 240336; break; + case 2: - addAssignedRoom(); + id = addAssignedRoomDialogue(); break; + case 3: if (id == 240431 || id == 240432) { if (getValue(3) == 1) { @@ -410,9 +412,13 @@ int DeskbotScript::doSentenceEntry(int val1, const int *srcIdP, const TTroomScri } } break; + default: break; } + + addResponse(getDialogueId(id)); + return 2; } else { switch (val1) { case 1: @@ -444,15 +450,20 @@ int DeskbotScript::doSentenceEntry(int val1, const int *srcIdP, const TTroomScri case 2: if (getValue(1) == 1) - return true; + return 1; + break; + + case 3: + if (getValue(1) != 1) + return 1; break; default: break; } - } - return 0; + return 0; + } } bool DeskbotScript::randomResponse(uint index) { |