aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/tattoo.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-06 17:50:57 -0400
committerPaul Gilbert2015-06-06 17:50:57 -0400
commitca07e8faf27dd6c48b99fe623097e0d95ff77216 (patch)
tree317225788053f9cb08754487f3e4faa4ad3d76dc /engines/sherlock/tattoo/tattoo.cpp
parent28c054d1e2fcda0442ba944c246327cc36c290b1 (diff)
downloadscummvm-rg350-ca07e8faf27dd6c48b99fe623097e0d95ff77216.tar.gz
scummvm-rg350-ca07e8faf27dd6c48b99fe623097e0d95ff77216.tar.bz2
scummvm-rg350-ca07e8faf27dd6c48b99fe623097e0d95ff77216.zip
SHERLOCK: Add initialization of RT character portraits and names
Diffstat (limited to 'engines/sherlock/tattoo/tattoo.cpp')
-rw-r--r--engines/sherlock/tattoo/tattoo.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo.cpp b/engines/sherlock/tattoo/tattoo.cpp
index 273f37051e..ea96a4958a 100644
--- a/engines/sherlock/tattoo/tattoo.cpp
+++ b/engines/sherlock/tattoo/tattoo.cpp
@@ -22,7 +22,9 @@
#include "engines/util.h"
#include "sherlock/tattoo/tattoo.h"
+#include "sherlock/tattoo/tattoo_resources.h"
#include "sherlock/tattoo/tattoo_scene.h"
+#include "sherlock/people.h"
namespace Sherlock {
@@ -47,6 +49,13 @@ void TattooEngine::initialize() {
// Add some more files to the cache
_res->addToCache("walk.lib");
+
+ // Set up list of people
+ for (int idx = 0; idx < TATTOO_MAX_PEOPLE; ++idx) {
+ _people->_characters.push_back(PersonData(
+ getLanguage() == Common::FR_FRA ? FRENCH_NAMES[idx] : ENGLISH_NAMES[idx],
+ PORTRAITS[idx], nullptr, nullptr));
+ }
// Starting scene
_scene->_goToScene = STARTING_INTRO_SCENE;