Let awareness images replay over and over
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user