Making townsfolk report you to a guard

This commit is contained in:
2014-06-19 19:03:58 -07:00
parent 083614e215
commit 5c6a541350

View File

@@ -1072,6 +1072,7 @@ var AISprite = function(game, x, y, key, frame) {
var lastdist = 0.0; var lastdist = 0.0;
if ( (this.path.length < 1) || this.path_index >= this.path.length) { if ( (this.path.length < 1) || this.path_index >= this.path.length) {
for ( var i = 0 ; i < aiSprites.length; i++ ) { for ( var i = 0 ; i < aiSprites.length; i++ ) {
console.log("Checking out aiSprite[" + i + "]");
spr = aiSprites[i]; spr = aiSprites[i];
if ( spr.sprite_group !== "townsfolk-guard" ) if ( spr.sprite_group !== "townsfolk-guard" )
continue; continue;