Skip to content

Commit

Permalink
Fixed a bug with the page title.
Browse files Browse the repository at this point in the history
  • Loading branch information
Continuities committed Oct 29, 2013
1 parent 5d07c76 commit a24d492
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion script/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ var Engine = {
// FIXME Why does this work if there's an animation queue...?
stores.animate({right: -(panelIndex * 700) + 'px'}, 300 * diff);
}

Engine.activeModule = module;

module.onArrival(diff);

Expand All @@ -363,7 +365,7 @@ var Engine = {
$('div#weapons').animate({opacity: 1}, 300);
}

Engine.activeModule = module;


Notifications.printQueue(module);
}
Expand Down
6 changes: 3 additions & 3 deletions script/outside.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ var Outside = {
}
},

updateVillage: function() {
updateVillage: function(ignoreStores) {
var village = $('div#village');
var population = $('div#population');
var needsAppend = false;
Expand Down Expand Up @@ -425,7 +425,7 @@ var Outside = {

this.setTitle();

if(Engine.activeModule === Outside && village.children().length > 1) {
if(!ignoreStores && Engine.activeModule === Outside && village.children().length > 1) {
$('#storesContainer').css({top: village.height() + 26 + 'px'});
}
},
Expand Down Expand Up @@ -539,7 +539,7 @@ var Outside = {
$SM.set('game.outside.seenForest', true);
}
Outside.updateTrapButton();
Outside.updateVillage();
Outside.updateVillage(true);

Engine.moveStoresView($('#village'), transition_diff);
},
Expand Down

0 comments on commit a24d492

Please sign in to comment.