[Scummvm-cvs-logs] SF.net SVN: scummvm:[44308] scummvm/trunk/engines/engine.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Thu Sep 24 18:17:52 CEST 2009
Revision: 44308
http://scummvm.svn.sourceforge.net/scummvm/?rev=44308&view=rev
Author: lordhoto
Date: 2009-09-24 16:17:52 +0000 (Thu, 24 Sep 2009)
Log Message:
-----------
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.
Modified Paths:
--------------
scummvm/trunk/engines/engine.cpp
Modified: scummvm/trunk/engines/engine.cpp
===================================================================
--- scummvm/trunk/engines/engine.cpp 2009-09-24 16:17:25 UTC (rev 44307)
+++ scummvm/trunk/engines/engine.cpp 2009-09-24 16:17:52 UTC (rev 44308)
@@ -343,7 +343,10 @@
}
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");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list