Merging 1.9.1 source: scene changes
This commit is contained in:
@@ -27,6 +27,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Statistics;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ui.GameLog;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.windows.WndError;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.windows.WndStory;
|
||||
import com.watabou.noosa.BitmapText;
|
||||
@@ -56,7 +57,7 @@ public class InterlevelScene extends PixelScene {
|
||||
"it may mean this save game is corrupted. Sorry about that.";
|
||||
|
||||
public static enum Mode {
|
||||
DESCEND, ASCEND, CONTINUE, RESURRECT, RETURN, FALL, RESET
|
||||
DESCEND, ASCEND, CONTINUE, RESURRECT, RETURN, FALL, RESET, NONE
|
||||
};
|
||||
public static Mode mode;
|
||||
|
||||
@@ -227,6 +228,7 @@ public class InterlevelScene extends PixelScene {
|
||||
Dungeon.chapters.add( WndStory.ID_SEWERS );
|
||||
noStory = false;
|
||||
}
|
||||
GameLog.wipe();
|
||||
} else {
|
||||
Dungeon.saveLevel();
|
||||
}
|
||||
@@ -278,7 +280,9 @@ public class InterlevelScene extends PixelScene {
|
||||
private void restore() throws IOException {
|
||||
|
||||
Actor.fixTime();
|
||||
|
||||
|
||||
GameLog.wipe();
|
||||
|
||||
Dungeon.loadGame( StartScene.curClass );
|
||||
if (Dungeon.depth == -1) {
|
||||
Dungeon.depth = Statistics.deepestFloor;
|
||||
|
||||
Reference in New Issue
Block a user