Reporting townspeople should send the guard to the player's last known locatio n - more than once

This commit is contained in:
2014-06-22 16:45:27 -07:00
parent b11491400f
commit d6dc3bffe4

View File

@@ -351,7 +351,8 @@ var AISprite = function(game, x, y, key, frame) {
if ( this.path_index >= this.path.length ) {
this.path_tween_stop();
if ( (visual == true) && (this.canSeeSprite(target, false) == true )) {
if ( ((visual == true) && (this.canSeeSprite(target, false) == true )) ||
(visual == false)) {
this.setAwarenessEffect(alertedState);
this.path_set(target, true, maxsteps, useNearestWalkable);
this.path_tween_start(movingstate);