[Scummvm-cvs-logs] SF.net SVN: scummvm:[53796] scummvm/trunk/engines/scumm/actor.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Mon Oct 25 07:26:17 CEST 2010


Revision: 53796
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53796&view=rev
Author:   Kirben
Date:     2010-10-25 05:26:16 +0000 (Mon, 25 Oct 2010)

Log Message:
-----------
SCUMM: Add patch #3093048 - MMC64: German actor names.

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/actor.cpp

Modified: scummvm/trunk/engines/scumm/actor.cpp
===================================================================
--- scummvm/trunk/engines/scumm/actor.cpp	2010-10-25 03:47:53 UTC (rev 53795)
+++ scummvm/trunk/engines/scumm/actor.cpp	2010-10-25 05:26:16 UTC (rev 53796)
@@ -2259,7 +2259,7 @@
 	}
 }
 
-static const char* v0ActorNames[0x19] = {
+static const char* v0ActorNames_English[25] = {
 	"Syd",
 	"Razor",
 	"Dave",
@@ -2285,12 +2285,45 @@
 	"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);
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list