aboutsummaryrefslogtreecommitdiff
path: root/engines/sky
diff options
context:
space:
mode:
authorMax Horn2006-04-16 19:23:14 +0000
committerMax Horn2006-04-16 19:23:14 +0000
commit74edd90aba15db1196b16b5eae918347670d11c8 (patch)
tree7410c4e14dadff2c051b42ea3a09d99987b0d6d5 /engines/sky
parent08b9cd7922c48df064c17d71cc306f330043b817 (diff)
downloadscummvm-rg350-74edd90aba15db1196b16b5eae918347670d11c8.tar.gz
scummvm-rg350-74edd90aba15db1196b16b5eae918347670d11c8.tar.bz2
scummvm-rg350-74edd90aba15db1196b16b5eae918347670d11c8.zip
Fix for bug #1471383: Instead of overloading ConfigManager::set, we now have new setInt and setBool methods (matching getInt/getBool), which avoids strange quirks & bugs caused by (char *) being implicitly cast to int (ouch)
svn-id: r21951
Diffstat (limited to 'engines/sky')
-rw-r--r--engines/sky/control.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp
index 04eecfe428..8118700eff 100644
--- a/engines/sky/control.cpp
+++ b/engines/sky/control.cpp
@@ -718,7 +718,7 @@ uint16 Control::toggleFx(ConResource *pButton) {
_statusBar->setToText(0x7000 + 86);
}
- ConfMan.set("sfx_mute", (SkyEngine::_systemVars.systemFlags & SF_FX_OFF) != 0);
+ ConfMan.setBool("sfx_mute", (SkyEngine::_systemVars.systemFlags & SF_FX_OFF) != 0);
pButton->drawToScreen(WITH_MASK);
buttonControl(pButton);
@@ -742,8 +742,8 @@ uint16 Control::toggleText(void) {
_statusBar->setToText(0x7000 + 35); // text only
}
- ConfMan.set("subtitles", (flags & SF_ALLOW_TEXT) != 0);
- ConfMan.set("speech_mute", (flags & SF_ALLOW_SPEECH) == 0);
+ ConfMan.setBool("subtitles", (flags & SF_ALLOW_TEXT) != 0);
+ ConfMan.setBool("speech_mute", (flags & SF_ALLOW_SPEECH) == 0);
SkyEngine::_systemVars.systemFlags |= flags;