v0.2.3: fixed a bug with sewer boss levels and the rat king's room
This commit is contained in:
parent
17facf7cde
commit
b4d946d64c
|
@ -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<Room> candidates = new ArrayList<Room>();
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user