v1.3.0: fixed chasm falling not incrementing dungeon depth
This commit is contained in:
+2
-2
@@ -412,10 +412,10 @@ public class InterlevelScene extends PixelScene {
|
|||||||
Dungeon.saveAll();
|
Dungeon.saveAll();
|
||||||
|
|
||||||
Level level;
|
Level level;
|
||||||
if (Dungeon.depth >= Statistics.deepestFloor) {
|
Dungeon.depth++;
|
||||||
|
if (Dungeon.depth > Statistics.deepestFloor) {
|
||||||
level = Dungeon.newLevel();
|
level = Dungeon.newLevel();
|
||||||
} else {
|
} else {
|
||||||
Dungeon.depth++;
|
|
||||||
level = Dungeon.loadLevel( GamesInProgress.curSlot );
|
level = Dungeon.loadLevel( GamesInProgress.curSlot );
|
||||||
}
|
}
|
||||||
Dungeon.switchLevel( level, level.fallCell( fallIntoPit ));
|
Dungeon.switchLevel( level, level.fallCell( fallIntoPit ));
|
||||||
|
|||||||
Reference in New Issue
Block a user