From 5b395c739778b17c33e82ca9687b4ef8a97bd76a Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 13 Jun 2007 20:13:06 +0000 Subject: Moved a check for game type after engine initialization svn-id: r27390 --- engines/saga/saga.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'engines/saga/saga.cpp') diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp index 611bc9b079..ea42eac0d7 100644 --- a/engines/saga/saga.cpp +++ b/engines/saga/saga.cpp @@ -148,16 +148,6 @@ int SagaEngine::init() { _soundVolume = ConfMan.getInt("sfx_volume") / 25; _musicVolume = ConfMan.getInt("music_volume") / 25; _subtitlesEnabled = ConfMan.getBool("subtitles"); - if (getGameType() == GType_IHNM) { - if (!ConfMan.hasKey("voices")) { - _voicesEnabled = true; - ConfMan.setBool("voices", true); - } else { - _voicesEnabled = ConfMan.getBool("voices"); - } - } else { - _voicesEnabled = true; - } _readingSpeed = getTalkspeed(); _copyProtection = ConfMan.getBool("copy_protection"); @@ -231,6 +221,17 @@ int SagaEngine::init() { _gfx->initPalette(); + if (getGameType() == GType_IHNM) { + if (!ConfMan.hasKey("voices")) { + _voicesEnabled = true; + ConfMan.setBool("voices", true); + } else { + _voicesEnabled = ConfMan.getBool("voices"); + } + } else { + _voicesEnabled = true; + } + // FIXME: This is the ugly way of reducing redraw overhead. It works // well for 320x200 but it's unclear how well it will work for // 640x480. -- cgit v1.2.3