v0.9.2a: fixed hallway rooms still spawning as empty with 1 connection

This commit is contained in:
Evan Debenham 2021-03-09 22:40:23 -05:00
parent ba7d0ac112
commit 62236bdf5a

View File

@ -54,12 +54,6 @@ public class HallwayRoom extends StandardRoom {
Painter.fill( level, this, Terrain.WALL );
Painter.fill( level, this, 1 , Terrain.EMPTY );
if (connected.size() < 2){
//don't want to make a hallway between doors that don't exist
return;
}
Rect c = getConnectionSpace();
for (Door door : connected.values()) {