v0.9.1: fixed figure eight builder never putting entrance towards top
This commit is contained in:
parent
3ac006700e
commit
f89aca4dc0
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user