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:44:24 -07:00
parent f7aac0b3ea
commit b11491400f

View File

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