v0.3.2b: fixed a bug where multiple pit rooms would generate

This commit is contained in:
Evan Debenham 2015-11-07 04:00:55 -05:00
parent e662fa4cb1
commit ec49a78bc4

View File

@ -210,7 +210,7 @@ public abstract class RegularLevel extends Level {
r.width() > 3 && r.height() > 3 &&
Random.Int( specialRooms * specialRooms + 2 ) == 0) {
if (pitRoomNeeded) {
if (pitRoomNeeded && !pitMade) {
r.type = Type.PIT;
pitMade = true;