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:41:42 -07:00
parent 4d88653a06
commit f7aac0b3ea

View File

@@ -411,6 +411,7 @@ var AISprite = function(game, x, y, key, frame) {
} else if ( hasState(this, STATE_RUNNINGTOLIGHT) == false ) { } else if ( hasState(this, STATE_RUNNINGTOLIGHT) == false ) {
if ( this.target.rotation_timer !== null ) if ( this.target.rotation_timer !== null )
this.target.rotation_timer.stop(); this.target.rotation_timer.stop();
this.target.path_purge();
this.target.setAwarenessEffect(STATE_ALERTED); this.target.setAwarenessEffect(STATE_ALERTED);
this.target.target = this.lastSawPlayerAt; this.target.target = this.lastSawPlayerAt;
addState(this.target, STATE_RUNNINGTOREPORT); addState(this.target, STATE_RUNNINGTOREPORT);