diff options
-rw-r--r-- | engines/sherlock/fonts.cpp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/engines/sherlock/fonts.cpp b/engines/sherlock/fonts.cpp index 440e31915c..482e795b6d 100644 --- a/engines/sherlock/fonts.cpp +++ b/engines/sherlock/fonts.cpp @@ -109,16 +109,23 @@ inline byte Fonts::translateChar(byte c) { return 0; // translate to first actual character case 225: // This was done in the German interpreter - // happens when talking to the kid in the 2nd room - return 135; // special handling for 0xE1 + // SH1: happens, when talking to the kid in the 2nd room + // SH2: happens, when looking at the newspaper right at the start in the backalley + // Special handling for 0xE1 (German Sharp-S character) + if (IS_ROSE_TATTOO) { + return 136; // it got translated to this for SH2 + } + return 135; // and this for SH1 default: - if (c >= 0x80) { // German SH1 version did this - c--; + if (IS_SERRATED_SCALPEL) { + if (c >= 0x80) { // German SH1 version did this, but not German SH2 + c--; + } + // Spanish SH1 did this (reverse engineered code) + //if ((c >= 0xA0) && (c <= 0xAD) || (c == 0x82)) { + // c--; + //} } - // Spanish SH1 did this (reverse engineered code) - //if ((c >= 0xA0) && (c <= 0xAD) || (c == 0x82)) { - // c--; - //} assert(c > 32); // anything above space is allowed return c - 33; } |