v0.4.3b: fixed a hang in levelgen
This commit is contained in:
parent
dd2e8d5b5e
commit
ccb1dfe02e
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user