diff options
author | Paul Gilbert | 2017-09-17 16:24:26 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-17 16:24:26 -0400 |
commit | 481e18ee1d38512e9d1c730b357b230d5db22cae (patch) | |
tree | 0cc7a2e70876280a4ecb80d171cfeb90a66d7b1c /engines/titanic/true_talk | |
parent | 4a9098d083683f75918ee15f3191309182206f86 (diff) | |
download | scummvm-rg350-481e18ee1d38512e9d1c730b357b230d5db22cae.tar.gz scummvm-rg350-481e18ee1d38512e9d1c730b357b230d5db22cae.tar.bz2 scummvm-rg350-481e18ee1d38512e9d1c730b357b230d5db22cae.zip |
TITANIC: Create a separate g_language global in it's own file
I was becoming concerned with more and more files having to add the
full engine definition and sub-classes thereof via titanic.h,
just so the TRANSLATE macro could call getLanguage. This way, files
just need to include the lightweight translation.h file instead
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r-- | engines/titanic/true_talk/doorbot_script.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/titanic/true_talk/doorbot_script.cpp b/engines/titanic/true_talk/doorbot_script.cpp index 84c0548871..ab50eca0c6 100644 --- a/engines/titanic/true_talk/doorbot_script.cpp +++ b/engines/titanic/true_talk/doorbot_script.cpp @@ -24,6 +24,7 @@ #include "titanic/true_talk/doorbot_script.h" #include "titanic/true_talk/tt_room_script.h" #include "titanic/true_talk/true_talk_manager.h" +#include "titanic/translation.h" #include "titanic/titanic.h" namespace Titanic { @@ -546,10 +547,10 @@ ScriptChangedResult DoorbotScript::scriptChanged(const TTroomScript *roomScript, CTrueTalkManager::setFlags(39, 0); } - if (id >= 220000 && id <= TRANSLATE(222418, 222430)) { + if (id >= 220000 && id <= (uint)TRANSLATE(222418, 222430)) { addResponse(getDialogueId(id)); applyResponse(); - } else if (id >= 10000 && id <= TRANSLATE(11986, 11999)) { + } else if (id >= 10000 && id <= (uint)TRANSLATE(11986, 11999)) { addResponse(id); applyResponse(); } |