v0.9.1: fixed a shop placement issue in figure eight layouts

This commit is contained in:
Evan Debenham 2020-10-26 21:37:32 -04:00
parent 3a3398ef3d
commit f0b815471e

View File

@ -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;