v1.3.0: fixed chasm falling not incrementing dungeon depth

This commit is contained in:
Evan Debenham
2022-06-11 11:32:41 -04:00
parent a0bfd8e71f
commit 65f83a5de6

View File

@@ -412,10 +412,10 @@ public class InterlevelScene extends PixelScene {
Dungeon.saveAll();
Level level;
if (Dungeon.depth >= Statistics.deepestFloor) {
Dungeon.depth++;
if (Dungeon.depth > Statistics.deepestFloor) {
level = Dungeon.newLevel();
} else {
Dungeon.depth++;
level = Dungeon.loadLevel( GamesInProgress.curSlot );
}
Dungeon.switchLevel( level, level.fallCell( fallIntoPit ));