summaryrefslogtreecommitdiffstats
path: root/js/mapspecs.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/mapspecs.js')
-rw-r--r--js/mapspecs.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/mapspecs.js b/js/mapspecs.js
index 0f9be4a..688c9dc 100644
--- a/js/mapspecs.js
+++ b/js/mapspecs.js
@@ -985,8 +985,14 @@ function setMute(value)
{
var value = getCookie('pref_mute');
$('.mapMute').removeClass("mapMute_"+value);
- if (value == 'true') value = 'false';
- else value = 'true';
+ if (value == 'true') {
+ value = 'false';
+ soundManager.setVolume('pit', 20);
+ soundManager.setPan('pit', -60)
+ soundManager.play('pit');
+ } else {
+ value = 'true';
+ }
savePref('mute', value);
$('.mapMute').addClass("mapMute_"+value);