v0.6.4: deleting the last game in progress no longer switches the scene

This commit is contained in:
Evan Debenham 2018-03-22 21:59:39 -04:00
parent 33b6d83204
commit 47c45f90b4

View File

@ -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);
}
}
}
} );