Reset awareness timer when you get a new path
This commit is contained in:
@@ -1045,7 +1045,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
this.path_purge();
|
this.path_purge();
|
||||||
this.path_tween_stop();
|
this.path_tween_stop();
|
||||||
} else {
|
} else {
|
||||||
x.setAwarenessState(STATE_ALERTED);
|
this.setAwarenessState(STATE_ALERTED);
|
||||||
this.path_tween_start();
|
this.path_tween_start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user