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:
parent
e56dbf68be
commit
9ab801bec6
1 changed files with 4 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue