aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/titanic.h2
-rw-r--r--engines/titanic/true_talk/doorbot_script.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/titanic/titanic.h b/engines/titanic/titanic.h
index d60bbf6d10..1708df7d78 100644
--- a/engines/titanic/titanic.h
+++ b/engines/titanic/titanic.h
@@ -63,7 +63,7 @@ namespace Titanic {
#define MAX_SAVES 99
-#define TRANSLATE(enName, deName) (g_vm->isGerman() ? deName : enName)
+#define TRANSLATE(enVal, deVal) (g_vm->isGerman() ? deVal : enVal)
// If enabled, fixes an original bug where dispensed chickens weren't
// meant to be hot unless the Yellow fuse was left in the Fusebox.
diff --git a/engines/titanic/true_talk/doorbot_script.cpp b/engines/titanic/true_talk/doorbot_script.cpp
index 0323e3d021..84c0548871 100644
--- a/engines/titanic/true_talk/doorbot_script.cpp
+++ b/engines/titanic/true_talk/doorbot_script.cpp
@@ -546,10 +546,10 @@ ScriptChangedResult DoorbotScript::scriptChanged(const TTroomScript *roomScript,
CTrueTalkManager::setFlags(39, 0);
}
- if (id >= 220000 && id <= 222418) {
+ if (id >= 220000 && id <= TRANSLATE(222418, 222430)) {
addResponse(getDialogueId(id));
applyResponse();
- } else if (id >= 10000 && id <= 11986) {
+ } else if (id >= 10000 && id <= TRANSLATE(11986, 11999)) {
addResponse(id);
applyResponse();
}