Reset awareness timer when you get a new path

This commit is contained in:
2014-06-18 17:02:45 -07:00
parent 555609f5c5
commit e760ad248a

View File

@@ -1045,7 +1045,7 @@ var AISprite = function(game, x, y, key, frame) {
this.path_purge();
this.path_tween_stop();
} else {
x.setAwarenessState(STATE_ALERTED);
this.setAwarenessState(STATE_ALERTED);
this.path_tween_start();
}
}