aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authorPaul Gilbert2009-05-16 11:16:34 +0000
committerPaul Gilbert2009-05-16 11:16:34 +0000
commit1a427f8a9802db38ec7a5e4ea823fd05afcffc1e (patch)
tree34739d610b8b499a9a8f1575d43dd0e2d00c6f44 /engines/cruise
parentbce47e7eb68d62476fd2fcd6cc4ec1bf33618d51 (diff)
downloadscummvm-rg350-1a427f8a9802db38ec7a5e4ea823fd05afcffc1e.tar.gz
scummvm-rg350-1a427f8a9802db38ec7a5e4ea823fd05afcffc1e.tar.bz2
scummvm-rg350-1a427f8a9802db38ec7a5e4ea823fd05afcffc1e.zip
Added the font character lookup table for the German version of the game
svn-id: r40621
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/staticres.cpp50
-rw-r--r--engines/cruise/staticres.h7
2 files changed, 55 insertions, 2 deletions
diff --git a/engines/cruise/staticres.cpp b/engines/cruise/staticres.cpp
index e2633a5d36..1d6f26ac7b 100644
--- a/engines/cruise/staticres.cpp
+++ b/engines/cruise/staticres.cpp
@@ -57,7 +57,9 @@ int actor_invstat[][13] = {
{ -59, -60, -62, -63, -78, 0, 0, 0, 0, 0, 0, 0, 0}
};
-int16 fontCharacterTable[256] = {
+// font character lookup tables
+
+int16 english_fontCharacterTable[256] = {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1,
@@ -120,6 +122,52 @@ int16 fontCharacterTable[256] = {
-1,
};
+int16 german_fontCharacterTable[256] = {
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
+ 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
+ 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
+ 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
+ 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
+ 86, 87, 88, 89, 90, 91, 92,
+ -1, -1, -1,
+ 0x72,
+ -1, -1,
+ 0x5e,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 0x6a,
+ -1, -1, -1, -1, -1,
+ 0x66,
+ -1, -1, -1, -1,
+ 0x70, 0x78,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1,
+ 0x6a, 0x69,
+ -1, -1, -1, -1,
+ 0x6b, 0x6c,
+ -1, -1,
+ 0x6d, 0x6e,
+ -1, -1, -1, -1, -1, -1,
+ 0x6f,
+ -1,
+ 0x70,
+ -1, -1,
+ 0x71, 0x72,
+ -1, -1,
+ 0x74, 0x5D, 0x74, 0x76,
+ -1,
+ 0x5E,
+ -1,
+ 0x75, 0x73, 0x60, 0x5F, 0x61, 0x62,
+ -1, -1,
+ 0x63, 0x64,
+ -1, -1, -1, -1
+};
+
//
// Mouse data
//
diff --git a/engines/cruise/staticres.h b/engines/cruise/staticres.h
index e53215acee..ef9a1b47e9 100644
--- a/engines/cruise/staticres.h
+++ b/engines/cruise/staticres.h
@@ -27,6 +27,7 @@
#define CRUISE_STATICRES_H
#include "common/scummsys.h"
+#include "cruise/cruise.h"
namespace Cruise {
@@ -38,7 +39,11 @@ extern int actor_stat[][13];
extern int actor_invstat[][13];
-extern short int fontCharacterTable[256];
+extern short int english_fontCharacterTable[256];
+extern short int german_fontCharacterTable[256];
+
+#define fontCharacterTable (_vm->getLanguage() == Common::DE_DEU ? \
+ german_fontCharacterTable : english_fontCharacterTable)
// Mouse cursor data
extern const byte mouseCursorNormal[];