Stop chasing me if you can't see me at the end of your path
This commit is contained in:
@@ -714,7 +714,7 @@ var AISprite = function(game, x, y, key, frame) {
|
||||
|
||||
this.canSeeSprite = function(spr, debug) {
|
||||
var vd = this.view_distance;
|
||||
if ( hasState(this, STATE_ALERTED) ) {
|
||||
if ( hasState(this, STATE_ALERTED) )
|
||||
vd = vd * 2;
|
||||
|
||||
var xd = (spr.x - this.x);
|
||||
|
||||
Reference in New Issue
Block a user