aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-23 21:02:44 -0400
committerPaul Gilbert2017-09-23 21:02:44 -0400
commite5cad39a58b8b3ce517c37eb36ffd7a3fc5522f6 (patch)
tree7af8e6eca6c1eb9be1f4e50040a08ddc724eb651
parente9034ddffe8cae16904f7033f5f327b89d98fa8e (diff)
downloadscummvm-rg350-e5cad39a58b8b3ce517c37eb36ffd7a3fc5522f6.tar.gz
scummvm-rg350-e5cad39a58b8b3ce517c37eb36ffd7a3fc5522f6.tar.bz2
scummvm-rg350-e5cad39a58b8b3ce517c37eb36ffd7a3fc5522f6.zip
TITANIC: DE: Updates for SuccUBusScript
-rw-r--r--engines/titanic/true_talk/succubus_script.cpp24
1 files changed, 19 insertions, 5 deletions
diff --git a/engines/titanic/true_talk/succubus_script.cpp b/engines/titanic/true_talk/succubus_script.cpp
index 94875840b3..34ae772e1c 100644
--- a/engines/titanic/true_talk/succubus_script.cpp
+++ b/engines/titanic/true_talk/succubus_script.cpp
@@ -24,6 +24,7 @@
#include "titanic/true_talk/succubus_script.h"
#include "titanic/true_talk/true_talk_manager.h"
#include "titanic/titanic.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -171,15 +172,28 @@ int SuccUBusScript::process(const TTroomScript *roomScript, const TTsentence *se
}
ScriptChangedResult SuccUBusScript::scriptChanged(const TTroomScript *roomScript, uint id) {
- if (id == 148)
- CTrueTalkManager::setFlags(3, 1);
- else if (id == 150)
- CTrueTalkManager::setFlags(2, 1);
+ if (g_language == Common::EN_ANY) {
+ if (id == 148)
+ CTrueTalkManager::setFlags(3, 1);
+ else if (id == 150)
+ CTrueTalkManager::setFlags(2, 1);
+ } else {
+ if (id == 70211 || id == 230013) {
+ addResponse(getDialogueId(230163));
+ applyResponse();
+ return SCR_2;
+ } else if (id < 70211) {
+ if (id == 148)
+ CTrueTalkManager::setFlags(3, 1);
+ else if (id == 150)
+ CTrueTalkManager::setFlags(2, 1);
+ }
+ }
if (id >= 230000 && id <= 230245) {
addResponse(getDialogueId(id));
applyResponse();
- } else if (id >= 70000 && id <= 70243) {
+ } else if (id >= 70000 && id <= (uint)TRANSLATE(70243, 70248)) {
addResponse(id);
applyResponse();
}