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
@@ -349,6 +349,8 @@ var Engine = {
stores.animate({right: -(panelIndex * 700) + 'px'}, 300 * diff); stores.animate({right: -(panelIndex * 700) + 'px'}, 300 * diff);
} }
Engine.activeModule = module;
module.onArrival(diff); module.onArrival(diff);
if(Engine.activeModule == Room || Engine.activeModule == Path) { if(Engine.activeModule == Room || Engine.activeModule == Path) {
@@ -363,7 +365,7 @@ var Engine = {
$('div#weapons').animate({opacity: 1}, 300); $('div#weapons').animate({opacity: 1}, 300);
} }
Engine.activeModule = module;
Notifications.printQueue(module); Notifications.printQueue(module);
} }
+3 -3
View File
@@ -377,7 +377,7 @@ var Outside = {
} }
}, },
updateVillage: function() { updateVillage: function(ignoreStores) {
var village = $('div#village'); var village = $('div#village');
var population = $('div#population'); var population = $('div#population');
var needsAppend = false; var needsAppend = false;
@@ -425,7 +425,7 @@ var Outside = {
this.setTitle(); 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'}); $('#storesContainer').css({top: village.height() + 26 + 'px'});
} }
}, },
@@ -539,7 +539,7 @@ var Outside = {
$SM.set('game.outside.seenForest', true); $SM.set('game.outside.seenForest', true);
} }
Outside.updateTrapButton(); Outside.updateTrapButton();
Outside.updateVillage(); Outside.updateVillage(true);
Engine.moveStoresView($('#village'), transition_diff); Engine.moveStoresView($('#village'), transition_diff);
}, },