Update Level.java

This commit is contained in:
Watabou 2014-07-28 14:32:31 +04:00
parent fa0a0463c5
commit 0ebed3b0f5

View File

@ -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<Bundlable> collection = bundle.getCollection( HEAPS );