From df3808351b21066a08ba03ee6b21f4627288f17f Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 15 Jun 2014 22:19:14 -0700 Subject: [PATCH] Working on AI behaviors --- 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 c10fed6..79e0cb5 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -868,6 +868,7 @@ var AISprite = function(game, x, y, key, frame) { this.action_wander = function() { + var newstate = STATE_NONE; if ( this.sprite_canmove == false) { return; } @@ -899,7 +900,6 @@ var AISprite = function(game, x, y, key, frame) { this.update = function() { var running = false; - var newstate = STATE_NONE; if ( this.awareness_effect !== null ) { if ( this.awareness_effect.alive == false ) {