aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorFilippos Karapetis2007-07-26 14:39:05 +0000
committerFilippos Karapetis2007-07-26 14:39:05 +0000
commitda7d87e410a363754ee5f75d8e9ab29f04149386 (patch)
treeb13bdd01a8d9c85f7334b551efd51e7dd64e0a7a /engines/saga
parent4785ae9cfc770746baca65ba70e014c77a24e98f (diff)
downloadscummvm-rg350-da7d87e410a363754ee5f75d8e9ab29f04149386.tar.gz
scummvm-rg350-da7d87e410a363754ee5f75d8e9ab29f04149386.tar.bz2
scummvm-rg350-da7d87e410a363754ee5f75d8e9ab29f04149386.zip
The demo version of IHNM has 3 font types (like ITE), not 6 (like the full version of IHNM)
svn-id: r28215
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/font.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/saga/font.cpp b/engines/saga/font.cpp
index ece48512df..caf41ab43e 100644
--- a/engines/saga/font.cpp
+++ b/engines/saga/font.cpp
@@ -629,7 +629,8 @@ void Font::textDrawRect(FontId fontId, Surface *ds, const char *text, const Comm
Font::FontId Font::knownFont2FontIdx(KnownFont font) {
FontId fontId = kSmallFont;
- if (_vm->getGameType() == GType_ITE) {
+ // The demo version of IHNM has 3 font types (like ITE), not 6 (like the full version of IHNM)
+ if (_vm->getGameType() == GType_ITE || _vm->getGameId() == GID_IHNM_DEMO) {
switch (font)
{
case (kKnownFontSmall):
@@ -652,7 +653,7 @@ Font::FontId Font::knownFont2FontIdx(KnownFont font) {
fontId = _vm->_font->valid(kBigFont) ? kBigFont : kMediumFont;
break;
}
- } else if (_vm->getGameType() == GType_IHNM) {
+ } else if (_vm->getGameType() == GType_IHNM && _vm->getGameId() != GID_IHNM_DEMO) {
switch (font)
{
case (kKnownFontSmall):