aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTravis Howell2010-10-25 05:26:16 +0000
committerTravis Howell2010-10-25 05:26:16 +0000
commit8e10c5bc3b98030df8232091f38295b001cfe2f7 (patch)
tree3844fab94e39f4c3fe53ae5ca02f13ba7cc53779 /engines/scumm
parent66de867fe4ebc1015b9c9d61d2e987f0bef2fdaa (diff)
downloadscummvm-rg350-8e10c5bc3b98030df8232091f38295b001cfe2f7.tar.gz
scummvm-rg350-8e10c5bc3b98030df8232091f38295b001cfe2f7.tar.bz2
scummvm-rg350-8e10c5bc3b98030df8232091f38295b001cfe2f7.zip
SCUMM: Add patch #3093048 - MMC64: German actor names.
svn-id: r53796
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/actor.cpp39
1 files changed, 36 insertions, 3 deletions
diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp
index 1bcb065b25..844192588f 100644
--- a/engines/scumm/actor.cpp
+++ b/engines/scumm/actor.cpp
@@ -2259,7 +2259,7 @@ void Actor::setActorCostume(int c) {
}
}
-static const char* v0ActorNames[0x19] = {
+static const char* v0ActorNames_English[25] = {
"Syd",
"Razor",
"Dave",
@@ -2285,12 +2285,45 @@ static const char* v0ActorNames[0x19] = {
"Sandy"
};
+static const char* v0ActorNames_German[25] = {
+ "Syd",
+ "Razor",
+ "Dave",
+ "Michael",
+ "Bernard",
+ "Wendy",
+ "Jeff",
+ "",
+ "Dr.Fred",
+ "Schwester Edna",
+ "Weird Ed",
+ "Ted",
+ "Lila Tentakel",
+ "Gr<nes Tentakel",
+ "Meteor",
+ "Pflanze",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "Sandy"
+};
+
const byte *Actor::getActorName() {
const byte *ptr = NULL;
if (_vm->_game.version == 0) {
- if (_number)
- ptr = (const byte *)v0ActorNames[_number - 1];
+ if (_number) {
+ switch (_vm->_language) {
+ case Common::DE_DEU:
+ ptr = (const byte *)v0ActorNames_German[_number - 1];
+ break;
+ default:
+ ptr = (const byte *)v0ActorNames_English[_number - 1];
+ }
+ }
} else {
ptr = _vm->getResourceAddress(rtActorName, _number);
}