From b17493942b226e2e3eae717b0445eeebe412e187 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Thu, 19 Jun 2014 08:23:50 -0700 Subject: [PATCH] Add other NPCs back in --- moonlight/js/moonlight-skulk.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 50285de..190ee09 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -1011,8 +1011,10 @@ var AISprite = function(game, x, y, key, frame) { this.animations.stop(); this.animations.play("bipedrun" + spriteFacing(this)); this.animations.stop(); - this.rotation_timer.stop(); - this.rotation_timer = null; + if ( this.rotation_timer !== null ) { + this.rotation_timer.stop(); + this.rotation_timer = null; + } } this.action_chaseplayer = function()