Maescool/Catacomb-Snatch — Issue #223: Disable Musik / FX via Key ( F2 maybe ):
Author: exarch42
Created: 2012-02-23 06:44:18+00:00
State: open

Like ( bad code!):

player.java:
if (keys.soundswitch.isDown) {
if ( MojamComponent.soundPlayer.isMuted()) {
MojamComponent.soundPlayer.setMuted(false);
MojamComponent.soundPlayer.stopBackgroundMusic();
}
else
{
MojamComponent.soundPlayer.setMuted(true);
MojamComponent.soundPlayer.startBackgroundMusic();

}
}