Fixed bug in Engine::flipMute, whiched prevent the game from being muted the first time flipMute is called, when there's no "mute" config entry.

svn-id: r44308
This commit is contained in:
Johannes Schickel 2009-09-24 16:17:52 +00:00
parent e56dbf68be
commit 9ab801bec6

View file

@ -343,7 +343,10 @@ void Engine::syncSoundSettings() {
}
void Engine::flipMute() {
bool mute = false;
// Mute will be set to true by default here. This has two reasons:
// - if the game already has an "mute" config entry, it will be overwritten anyway.
// - if it does not have a "mute" config entry, the sound is unmuted currently and should be muted now.
bool mute = true;
if (ConfMan.hasKey("mute")) {
mute = !ConfMan.getBool("mute");