From 0ebed3b0f5e435f8b69e22f50b78f0c366c796a8 Mon Sep 17 00:00:00 2001 From: Watabou Date: Mon, 28 Jul 2014 14:32:31 +0400 Subject: [PATCH] Update Level.java --- src/com/watabou/pixeldungeon/levels/Level.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/watabou/pixeldungeon/levels/Level.java b/src/com/watabou/pixeldungeon/levels/Level.java index 4aa1ff729..e23e16c3f 100644 --- a/src/com/watabou/pixeldungeon/levels/Level.java +++ b/src/com/watabou/pixeldungeon/levels/Level.java @@ -184,7 +184,7 @@ public abstract class Level implements Bundlable { } } - boolean pitNeeded = Dungeon.depth == 1 ? false : weakFloorCreated; + boolean pitNeeded = Dungeon.depth > 1 && weakFloorCreated; do { Arrays.fill( map, feeling == Feeling.CHASM ? Terrain.CHASM : Terrain.WALL ); @@ -227,6 +227,8 @@ public abstract class Level implements Bundlable { entrance = bundle.getInt( ENTRANCE ); exit = bundle.getInt( EXIT ); + weakFloorCreated = false; + adjustMapSize(); Collection collection = bundle.getCollection( HEAPS );