aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorFilippos Karapetis2007-06-13 20:13:06 +0000
committerFilippos Karapetis2007-06-13 20:13:06 +0000
commit5b395c739778b17c33e82ca9687b4ef8a97bd76a (patch)
tree666b3b0e858b62d9c1d014d17b3dc38cc51b5e1a /engines/saga
parent607b2f3476bb716d8c1ba001db44c72ec9435ca1 (diff)
downloadscummvm-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.cpp21
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.