From d5407363d933ca8ed2d5c64bd762979ae509c414 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Tue, 17 Jun 2014 23:30:17 -0700 Subject: [PATCH] Stop chasing me if you can't see me at the end of your path --- 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 8aea09b..b64ecf4 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -720,7 +720,7 @@ var AISprite = function(game, x, y, key, frame) { var distance = (new Phaser.Line(spr.x, spr.y, this.x, this.y).length); if ( distance > vd ) { - console.log("Target is outside my view distance"); + console.log("Target is outside my view distance (" + distance + " vs " + vd + ")"); return false; }