From b4d946d64c0747c64c1a990c5fdfac96515534b0 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 9 Dec 2014 11:57:43 -0500 Subject: [PATCH] v0.2.3: fixed a bug with sewer boss levels and the rat king's room --- .../shatteredpixeldungeon/levels/SewerBossLevel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/SewerBossLevel.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/SewerBossLevel.java index 115c2fedd..3bfed7bb6 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/SewerBossLevel.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/SewerBossLevel.java @@ -122,7 +122,7 @@ public class SewerBossLevel extends RegularLevel { //look at rooms adjacent to the final found room (likely to be furthest from start) ArrayList candidates = new ArrayList(); for (Room r : lastRoom.neigbours) { - if (r.type == Type.NULL && r.connected.size() == 0) { + if (r.type == Type.NULL && r.connected.size() == 0 && !r.neigbours.contains(roomEntrance)) { candidates.add(r); } }