Skip to content
Snippets Groups Projects
Commit 103a5efb authored by FarawayVision's avatar FarawayVision
Browse files

Pose Engine: treat sprite base path as 'opponents/' instead of player.folder

parent 283e6c35
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
function PoseSprite(id, src, onload, args) {
this.id = id;
this.player = args.player;
this.src = args.player.folder + src;
this.src = 'opponents/' + src;
this.x = args.x || 0;
this.y = args.y || 0;
this.z = args.z || 'auto';
......@@ -308,7 +308,7 @@ function PoseDefinition ($xml, player) {
}
PoseDefinition.prototype.getUsedImages = function(stage) {
var baseFolder = this.player.folders ? this.player.getByStage(this.player.folders, stage) : this.player.folder;
var baseFolder = 'opponents/';
var imageSet = {};
this.sprites.forEach(function (sprite) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment