v0.3.1: fixed a bug where non-regular doors would spawn as hidden.

This commit is contained in:
Evan Debenham 2015-07-16 13:48:47 -04:00
parent 8334332d0f
commit 36ccb6d48d

View File

@ -100,7 +100,8 @@ public class SewerLevel extends RegularLevel {
if (Dungeon.depth == 2)
for (Room r : roomEntrance.connected.keySet()){
Room.Door d = roomEntrance.connected.get(r);
map[d.x + d.y * WIDTH] = Terrain.SECRET_DOOR;
if (d.type == Room.Door.Type.REGULAR)
map[d.x + d.y * WIDTH] = Terrain.SECRET_DOOR;
}
placeSign();