diff options
author | Filippos Karapetis | 2007-06-13 20:13:06 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-06-13 20:13:06 +0000 |
commit | 5b395c739778b17c33e82ca9687b4ef8a97bd76a (patch) | |
tree | 666b3b0e858b62d9c1d014d17b3dc38cc51b5e1a /engines/saga | |
parent | 607b2f3476bb716d8c1ba001db44c72ec9435ca1 (diff) | |
download | scummvm-rg350-5b395c739778b17c33e82ca9687b4ef8a97bd76a.tar.gz scummvm-rg350-5b395c739778b17c33e82ca9687b4ef8a97bd76a.tar.bz2 scummvm-rg350-5b395c739778b17c33e82ca9687b4ef8a97bd76a.zip |
Moved a check for game type after engine initialization
svn-id: r27390
Diffstat (limited to 'engines/saga')
-rw-r--r-- | engines/saga/saga.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
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. |