From befad3026f5b0bb07cdd55560835425feb73b031 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 30 Apr 2015 15:04:55 -0400 Subject: ignore muted state FOR NOW --- public/assets/javascripts/rectangles/engine/scenery/sound.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/assets/javascripts/rectangles') diff --git a/public/assets/javascripts/rectangles/engine/scenery/sound.js b/public/assets/javascripts/rectangles/engine/scenery/sound.js index d63d8c4..5a783d6 100644 --- a/public/assets/javascripts/rectangles/engine/scenery/sound.js +++ b/public/assets/javascripts/rectangles/engine/scenery/sound.js @@ -6,7 +6,7 @@ Scenery.sound.init = function(){ } Scenery.sound.move = function(){ Scenery.forEach(function(scenery){ - if ((scenery.type == "video" || scenery.type == "audio") && ! scenery.muted()) { + if ((scenery.type == "video" || scenery.type == "audio")) { // && ! scenery.muted()) { var distance = dist(cam.x, cam.z, scenery.mx.x, scenery.mx.z) var volume = 1 - (clamp( distance, 0, Scenery.sound.max_distance ) / Scenery.sound.max_distance) -- cgit v1.2.3-70-g09d2