From 956c66a886fd1934700336f18979abbbbfb57f25 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sat, 14 Jun 2014 15:06:40 -0700 Subject: [PATCH] Making AI able to 'see' the player --- moonlight/js/moonlight-skulk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index cbe54a9..4f453f4 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -588,7 +588,7 @@ EffectSprite.prototype = Object.create(Phaser.Sprite.prototype); EffectSprite.prototype.constructor = EffectSprite; var AISprite = function(game, x, y, key, frame) { - this.canSeeSprite = function(spr, debug=false) { + this.canSeeSprite = function(spr, debug) { var xd = (spr.x - this.x); if ( xd < 0 ) xd = -(xd);