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
+8 -4
View File
@@ -304,12 +304,16 @@ var Engine = {
}
module.onArrival(diff);
if(Engine.activeModule == Room) {
$('div#weapons').animate({opacity: 0}, 300);
if(Engine.activeModule == Room || Engine.activeModule == Path) {
// 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);
}