Fixed issue where path stores animation would not run.

This commit is contained in:
Travis Weston
2014-07-16 21:53:11 -04:00
parent 00e57a4bfa
commit da53de1ed2
+4 -4
View File
@@ -93,7 +93,7 @@ var Path = {
return Path.getCapacity() - num; return Path.getCapacity() - num;
}, },
updatePerks: function() { updatePerks: function(ignoreStores) {
if($SM.get('character.perks')) { if($SM.get('character.perks')) {
var perks = $('#perks'); var perks = $('#perks');
var needsAppend = false; var needsAppend = false;
@@ -115,7 +115,7 @@ var Path = {
perks.appendTo(Path.panel); perks.appendTo(Path.panel);
} }
if(Engine.activeModule === Path) { if(!ignoreStores && Engine.activeModule === Path) {
$('#storesContainer').css({top: perks.height() + 26 + 'px'}); $('#storesContainer').css({top: perks.height() + 26 + 'px'});
} }
} }
@@ -286,7 +286,7 @@ var Path = {
onArrival: function(transition_diff) { onArrival: function(transition_diff) {
Path.setTitle(); Path.setTitle();
Path.updateOutfitting(); Path.updateOutfitting();
Path.updatePerks(); Path.updatePerks(true);
Engine.moveStoresView($('#perks'), transition_diff); Engine.moveStoresView($('#perks'), transition_diff);
}, },
@@ -309,4 +309,4 @@ var Path = {
Path.updatePerks(); Path.updatePerks();
}; };
} }
}; };