Fixed a bug with the page title.

This commit is contained in:
Michael
2013-10-29 18:39:00 -04:00
parent 5d07c76577
commit a24d492681
2 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -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);
@@ -363,7 +365,7 @@ var Engine = {
$('div#weapons').animate({opacity: 1}, 300);
}
Engine.activeModule = module;
Notifications.printQueue(module);
}
+3 -3
View File
@@ -377,7 +377,7 @@ var Outside = {
}
},
updateVillage: function() {
updateVillage: function(ignoreStores) {
var village = $('div#village');
var population = $('div#population');
var needsAppend = false;
@@ -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'});
}
},
@@ -539,7 +539,7 @@ var Outside = {
$SM.set('game.outside.seenForest', true);
}
Outside.updateTrapButton();
Outside.updateVillage();
Outside.updateVillage(true);
Engine.moveStoresView($('#village'), transition_diff);
},