From 47c45f90b42fede37a3eff42d240fc8774f26b9d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 22 Mar 2018 21:59:39 -0400 Subject: [PATCH] v0.6.4: deleting the last game in progress no longer switches the scene --- .../shatteredpixeldungeon/windows/WndGameInProgress.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndGameInProgress.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndGameInProgress.java index 044f13c4f..4051f2117 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndGameInProgress.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndGameInProgress.java @@ -30,7 +30,6 @@ import com.shatteredpixel.shatteredpixeldungeon.messages.Messages; import com.shatteredpixel.shatteredpixeldungeon.scenes.InterlevelScene; import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene; import com.shatteredpixel.shatteredpixeldungeon.scenes.StartScene; -import com.shatteredpixel.shatteredpixeldungeon.scenes.TitleScene; import com.shatteredpixel.shatteredpixeldungeon.sprites.HeroSprite; import com.shatteredpixel.shatteredpixeldungeon.ui.RedButton; import com.shatteredpixel.shatteredpixeldungeon.ui.Window; @@ -126,11 +125,7 @@ public class WndGameInProgress extends Window { if (index == 0) { FileUtils.deleteDir(GamesInProgress.gameFolder(slot)); GamesInProgress.setUnknown(slot); - if (GamesInProgress.checkAll().size() > 0) { - ShatteredPixelDungeon.switchNoFade(StartScene.class); - } else { - ShatteredPixelDungeon.switchNoFade(TitleScene.class); - } + ShatteredPixelDungeon.switchNoFade(StartScene.class); } } } );