diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 6c41136..4b52223 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -128,7 +128,7 @@ SoundSprite.prototype.adjust_relative_to = function(spr) { ((game.camera.width/2) * (game.camera.width/2)) + ((game.camera.height/2) * (game.camera.height/2)) ); - this.sound.volume = Math.min([1.0, Number(hyp_perfect / hyp)]); + this.sound.volume = Math.min(1.0, Number(hyp_perfect / hyp)); console.log([hyp_perfect, hyp, this.sound.volume]); }