From f9c1a8697ba19bfeb1a9d65462c3748e1fca39bd Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 21 Aug 2020 11:56:09 -0400 Subject: [PATCH] v0.8.2c: fixed back button on hero select not appearing when intended --- .../shatteredpixeldungeon/scenes/HeroSelectScene.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/HeroSelectScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/HeroSelectScene.java index 24217b23a..755001538 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/HeroSelectScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/HeroSelectScene.java @@ -201,7 +201,7 @@ public class HeroSelectScene extends PixelScene { btnExit = new ExitButton(); btnExit.setPos( Camera.main.width - btnExit.width(), 0 ); add( btnExit ); - btnExit.visible = SPDSettings.intro() || Rankings.INSTANCE.totalNumber > 0; + btnExit.visible = !SPDSettings.intro() || Rankings.INSTANCE.totalNumber > 0; PointerArea fadeResetter = new PointerArea(0, 0, Camera.main.width, Camera.main.height){ @Override @@ -248,7 +248,7 @@ public class HeroSelectScene extends PixelScene { @Override public void update() { super.update(); - btnExit.visible = SPDSettings.intro() || Rankings.INSTANCE.totalNumber > 0; + btnExit.visible = !SPDSettings.intro() || Rankings.INSTANCE.totalNumber > 0; //do not fade when a window is open for (Object v : members){ if (v instanceof Window) resetFade();