From ef44eaad08a926fb1524ed119707b39e7884062d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 18 Nov 2015 22:40:57 -0500 Subject: [PATCH] v0.3.2c: fixed a crash in levelgen --- .../shatteredpixel/shatteredpixeldungeon/levels/CavesLevel.java | 2 +- .../shatteredpixel/shatteredpixeldungeon/levels/CityLevel.java | 2 +- .../shatteredpixeldungeon/levels/PrisonLevel.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/CavesLevel.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/CavesLevel.java index 708441e74..266ab961f 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/CavesLevel.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/CavesLevel.java @@ -79,7 +79,7 @@ public class CavesLevel extends RegularLevel { @Override protected boolean assignRoomType() { - super.assignRoomType(); + if (!super.assignRoomType()) return false; if (!Blacksmith.Quest.spawn( rooms ) && Dungeon.depth == 14) return false; diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/CityLevel.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/CityLevel.java index f042c11ac..2fdec8303 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/CityLevel.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/CityLevel.java @@ -75,7 +75,7 @@ public class CityLevel extends RegularLevel { @Override protected boolean assignRoomType() { - super.assignRoomType(); + if (!super.assignRoomType()) return false; for (Room r : rooms) { if (r.type == Type.TUNNEL) { diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonLevel.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonLevel.java index 37cb52bf4..9b94fa51a 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonLevel.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonLevel.java @@ -74,7 +74,7 @@ public class PrisonLevel extends RegularLevel { @Override protected boolean assignRoomType() { - super.assignRoomType(); + if (!super.assignRoomType()) return false; for (Room r : rooms) { if (r.type == Type.TUNNEL) {