v0.6.4: deleting the last game in progress no longer switches the scene
This commit is contained in:
parent
33b6d83204
commit
47c45f90b4
|
@ -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);
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
|
Loading…
Reference in New Issue
Block a user