v0.9.1: fixed a shop placement issue in figure eight layouts
This commit is contained in:
parent
3a3398ef3d
commit
f0b815471e
|
@ -211,7 +211,7 @@ public class FigureEightBuilder extends RegularBuilder {
|
|||
float angle;
|
||||
int tries = 10;
|
||||
do {
|
||||
angle = placeRoom(firstLoop, entrance, shop, Random.Float(360f));
|
||||
angle = placeRoom(rooms, entrance, shop, Random.Float(360f));
|
||||
tries--;
|
||||
} while (angle == -1 && tries >= 0);
|
||||
if (angle == -1) return null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user