Making townsfolk report you to a guard
This commit is contained in:
@@ -1071,7 +1071,7 @@ var AISprite = function(game, x, y, key, frame) {
|
||||
var nearest = null;
|
||||
var lastdist = 0.0;
|
||||
if ( (this.path.length < 1) || this.path_index >= this.path.length) {
|
||||
for ( var i = 0 ; i < length(aiSprites); i++ ) {
|
||||
for ( var i = 0 ; i < aiSprites.length; i++ ) {
|
||||
spr = aiSprites[i];
|
||||
if ( spr.sprite_group !== "townsfolk-guard" )
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user