mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
Fixed issue where path stores animation would not run.
This commit is contained in:
+3
-3
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user