Stop chasing me if you can't see me at the end of your path

This commit is contained in:
2014-06-17 22:47:36 -07:00
parent 73c91367c3
commit 178e658133

View File

@@ -699,6 +699,7 @@ var AISprite = function(game, x, y, key, frame) {
offset = [-32, 0]; offset = [-32, 0];
size = [96, -this.view_distance]; size = [96, -this.view_distance];
} else { } else {
console.log("I don't have a facing state?");
return null; return null;
} }
if ( hasState(this, STATE_ALERTED) ) { if ( hasState(this, STATE_ALERTED) ) {