diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index df9ee25..2e0205c 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -108,7 +108,7 @@ SoundSprite.prototype.update_new_values = function() { SoundSprite.prototype.adjust_relative_to = function(spr) { if ( this.sound_alwaysplay == false ) { // we can't use inCamera because we don't have a body/sprite - if ( ! game.camera.screenView.contains(this.x, this.y) ) { + if ( game.camera.screenView.contains(this.x, this.y) == false ) { console.log("Sound is not on camera"); // don't turn it off, let it continue at zero volume // for more realistic effect whe the player returns