Keep showing the weapons panel while in the Path screen.

This commit is contained in:
Matt Rasmus
2013-07-08 13:54:50 -07:00
parent de2ad91053
commit eaf2fcdfbb
+7 -3
View File
@@ -305,11 +305,15 @@ var Engine = {
module.onArrival(diff); module.onArrival(diff);
if(Engine.activeModule == Room) { if(Engine.activeModule == Room || Engine.activeModule == Path) {
$('div#weapons').animate({opacity: 0}, 300); // Don't fade out the weapons if we're switching to a module
// where we're going to keep showing them anyway.
if (module != Room && module != Path) {
$('div#weapons').animate({opacity: 0}, 300);
}
} }
if(module == Room) { if(module == Room || module == Path) {
$('div#weapons').animate({opacity: 1}, 300); $('div#weapons').animate({opacity: 1}, 300);
} }