v0.2.3: fixed a bug with sewer boss levels and the rat king's room

This commit is contained in:
Evan Debenham 2014-12-09 11:57:43 -05:00
parent 17facf7cde
commit b4d946d64c

View File

@ -122,7 +122,7 @@ public class SewerBossLevel extends RegularLevel {
//look at rooms adjacent to the final found room (likely to be furthest from start) //look at rooms adjacent to the final found room (likely to be furthest from start)
ArrayList<Room> candidates = new ArrayList<Room>(); ArrayList<Room> candidates = new ArrayList<Room>();
for (Room r : lastRoom.neigbours) { 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); candidates.add(r);
} }
} }