Let awareness images replay over and over

This commit is contained in:
2014-06-15 19:43:57 -07:00
parent 29f19b0278
commit c033eaea15

View File

@@ -723,11 +723,7 @@ var AISprite = function(game, x, y, key, frame) {
this.setAwarenessEffect = function(state) { this.setAwarenessEffect = function(state) {
var animkey = ""; var animkey = "";
if ( hasState(this, state) == true ) { if ( (state == STATE_LOSTHIM) &&
// restart the awareness timer
this.startAwarenessTimer();
return;
} else if ( (state == STATE_LOSTHIM) &&
(hasState(this, STATE_ALERTED) == false) && (hasState(this, STATE_ALERTED) == false) &&
(hasState(this, STATE_CONCERNED) == false) ) { (hasState(this, STATE_CONCERNED) == false) ) {
return; return;