v0.9.1: fixed figure eight builder never putting entrance towards top

This commit is contained in:
Evan Debenham 2020-10-31 15:07:06 -04:00
parent 3ac006700e
commit f89aca4dc0

View File

@ -96,7 +96,7 @@ public class FigureEightBuilder extends RegularBuilder {
mainPathRooms.remove(landmarkRoom); mainPathRooms.remove(landmarkRoom);
multiConnections.remove(landmarkRoom); multiConnections.remove(landmarkRoom);
float startAngle = Random.Float(0, 180); float startAngle = Random.Float(0, 360);
int roomsOnFirstLoop = mainPathRooms.size()/2; int roomsOnFirstLoop = mainPathRooms.size()/2;
if (mainPathRooms.size() % 2 == 1) roomsOnFirstLoop += Random.Int(2); if (mainPathRooms.size() % 2 == 1) roomsOnFirstLoop += Random.Int(2);