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 { do {
Arrays.fill( map, feeling == Feeling.CHASM ? Terrain.CHASM : Terrain.WALL ); Arrays.fill( map, feeling == Feeling.CHASM ? Terrain.CHASM : Terrain.WALL );
@ -227,6 +227,8 @@ public abstract class Level implements Bundlable {
entrance = bundle.getInt( ENTRANCE ); entrance = bundle.getInt( ENTRANCE );
exit = bundle.getInt( EXIT ); exit = bundle.getInt( EXIT );
weakFloorCreated = false;
adjustMapSize(); adjustMapSize();
Collection<Bundlable> collection = bundle.getCollection( HEAPS ); Collection<Bundlable> collection = bundle.getCollection( HEAPS );