v0.4.3b: fixed a hang in levelgen
This commit is contained in:
parent
dd2e8d5b5e
commit
ccb1dfe02e
|
@ -285,10 +285,12 @@ public abstract class RegularLevel extends Level {
|
|||
}
|
||||
|
||||
while (count < 6) {
|
||||
Room r = randomRoom( Type.TUNNEL, 1 );
|
||||
Room r = randomRoom( Type.TUNNEL, 20 );
|
||||
if (r != null) {
|
||||
r.type = Type.STANDARD;
|
||||
count++;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user