Skip to content

Commit

Permalink
Fixed issue where path stores animation would not run.
Browse files Browse the repository at this point in the history
  • Loading branch information
anubisthejackle committed Jul 17, 2014
1 parent 00e57a4 commit da53de1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ var Path = {
return Path.getCapacity() - num;
},

updatePerks: function() {
updatePerks: function(ignoreStores) {
if($SM.get('character.perks')) {
var perks = $('#perks');
var needsAppend = false;
Expand All @@ -115,7 +115,7 @@ var Path = {
perks.appendTo(Path.panel);
}

if(Engine.activeModule === Path) {
if(!ignoreStores && Engine.activeModule === Path) {
$('#storesContainer').css({top: perks.height() + 26 + 'px'});
}
}
Expand Down Expand Up @@ -286,7 +286,7 @@ var Path = {
onArrival: function(transition_diff) {
Path.setTitle();
Path.updateOutfitting();
Path.updatePerks();
Path.updatePerks(true);

Engine.moveStoresView($('#perks'), transition_diff);
},
Expand All @@ -309,4 +309,4 @@ var Path = {
Path.updatePerks();
};
}
};
};

0 comments on commit da53de1

Please sign in to comment.