Skip to content

Commit

Permalink
Update Level.java
Browse files Browse the repository at this point in the history
  • Loading branch information
watabou committed Jul 28, 2014
1 parent fa0a046 commit 0ebed3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/com/watabou/pixeldungeon/levels/Level.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void create() {
}
}

boolean pitNeeded = Dungeon.depth == 1 ? false : weakFloorCreated;
boolean pitNeeded = Dungeon.depth > 1 && weakFloorCreated;

do {
Arrays.fill( map, feeling == Feeling.CHASM ? Terrain.CHASM : Terrain.WALL );
Expand Down Expand Up @@ -227,6 +227,8 @@ public void restoreFromBundle( Bundle bundle ) {
entrance = bundle.getInt( ENTRANCE );
exit = bundle.getInt( EXIT );

weakFloorCreated = false;

adjustMapSize();

Collection<Bundlable> collection = bundle.getCollection( HEAPS );
Expand Down

0 comments on commit 0ebed3b

Please sign in to comment.