From da53de1ed2898baa856787f230df24636978a169 Mon Sep 17 00:00:00 2001 From: Travis Weston Date: Wed, 16 Jul 2014 21:53:11 -0400 Subject: [PATCH] Fixed issue where path stores animation would not run. --- script/path.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/path.js b/script/path.js index fb2289d..8c97922 100644 --- a/script/path.js +++ b/script/path.js @@ -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; @@ -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'}); } } @@ -286,7 +286,7 @@ var Path = { onArrival: function(transition_diff) { Path.setTitle(); Path.updateOutfitting(); - Path.updatePerks(); + Path.updatePerks(true); Engine.moveStoresView($('#perks'), transition_diff); }, @@ -309,4 +309,4 @@ var Path = { Path.updatePerks(); }; } -}; \ No newline at end of file +};