From fa71814c077a2c4ceb50f321e8951b7f17efaf99 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 27 Jan 2009 17:39:11 +0000 Subject: Proper fix for accented characters in the Italian version of ITE svn-id: r36103 --- engines/saga/font.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'engines') diff --git a/engines/saga/font.cpp b/engines/saga/font.cpp index 97903f7bee..175ab01478 100644 --- a/engines/saga/font.cpp +++ b/engines/saga/font.cpp @@ -28,7 +28,7 @@ #include "saga/saga.h" #include "saga/gfx.h" #include "saga/resource.h" - +#include "saga/scene.h" #include "saga/font.h" #include "saga/render.h" @@ -342,10 +342,14 @@ void Font::outFont(const FontStyle &drawFont, const char *text, size_t count, co // It doesn't make any difference for the English version of IHNM. // Fixes bug #1796045: "IHNM: Spanish font wrong". if (!(flags & kFontDontmap) && _vm->getGameId() == GID_ITE) { - // Don't do any special font mapping for the Italian fan - // translation of ITE - if (_vm->getLanguage() != Common::IT_ITA) + if (_vm->getLanguage() != Common::IT_ITA) { c_code = translateChar(c_code); + } else { + // The in-game fonts of the Italian version should not be mapped. + // The ones in the intro are hardcoded and should be mapped normally. + if (_vm->_scene->isInIntro()) + c_code = translateChar(c_code); + } } } else if (_fontMapping == 1) { // Force font mapping -- cgit v1.2.3