Add wandering sprites back to map via map objects

This commit is contained in:
2014-06-13 01:59:01 -07:00
parent 4a82afda4c
commit 81a447254b

View File

@@ -760,7 +760,7 @@ var AISprite = function(game, x, y, key, frame, spritetype) {
game.physics.arcade.enable(this);
this.body.collideWorldBounds = true;
if ( (typeof this.sprite_name) !== undefined ) {
if ( (typeof spritetype) !== undefined ) {
this.sprite_name = spritenames_by_type[spritetype];
var ARGH = spritenames_by_type[spritetype];
ARGH = ARGH.split("-");