v0.9.0: fixed back button closing game in hero select when it shouldn't

This commit is contained in:
Evan Debenham 2020-09-04 19:34:41 -04:00
parent 15ccffbe1f
commit 07a64ba2d3

View File

@ -275,7 +275,7 @@ public class HeroSelectScene extends PixelScene {
@Override
protected void onBackPressed() {
if (!SPDSettings.intro() && Rankings.INSTANCE.totalNumber == 0){
if (btnExit.visible){
ShatteredPixelDungeon.switchScene(TitleScene.class);
} else {
super.onBackPressed();