From 74edd90aba15db1196b16b5eae918347670d11c8 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 16 Apr 2006 19:23:14 +0000 Subject: 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 --- engines/sky/control.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sky') 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; -- cgit v1.2.3