mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-28 15:22:30 +08:00
Fixed a bug with the page title.
This commit is contained in:
+3
-1
@@ -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
@@ -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);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user