v0.4.3b: fixed a hang in levelgen

This commit is contained in:
Evan Debenham 2016-11-02 21:18:12 -04:00
parent dd2e8d5b5e
commit ccb1dfe02e

View File

@ -283,12 +283,14 @@ public abstract class RegularLevel extends Level {
} }
} }
} }
while (count < 6) { while (count < 6) {
Room r = randomRoom( Type.TUNNEL, 1 ); Room r = randomRoom( Type.TUNNEL, 20 );
if (r != null) { if (r != null) {
r.type = Type.STANDARD; r.type = Type.STANDARD;
count++; count++;
} else {
return false;
} }
} }