v0.9.0: fixed back button closing game in hero select when it shouldn't
This commit is contained in:
+1
-1
@@ -275,7 +275,7 @@ public class HeroSelectScene extends PixelScene {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onBackPressed() {
|
protected void onBackPressed() {
|
||||||
if (!SPDSettings.intro() && Rankings.INSTANCE.totalNumber == 0){
|
if (btnExit.visible){
|
||||||
ShatteredPixelDungeon.switchScene(TitleScene.class);
|
ShatteredPixelDungeon.switchScene(TitleScene.class);
|
||||||
} else {
|
} else {
|
||||||
super.onBackPressed();
|
super.onBackPressed();
|
||||||
|
|||||||
Reference in New Issue
Block a user