v0.7.0: fixed rare invalid branch room connections
This commit is contained in:
parent
c3c6b73c2b
commit
d4a3468c10
|
@ -162,6 +162,7 @@ public abstract class RegularBuilder extends Builder {
|
||||||
} while (angle == -1 && tries > 0);
|
} while (angle == -1 && tries > 0);
|
||||||
|
|
||||||
if (angle == -1) {
|
if (angle == -1) {
|
||||||
|
t.clearConnections();
|
||||||
for (Room c : connectingRoomsThisBranch){
|
for (Room c : connectingRoomsThisBranch){
|
||||||
c.clearConnections();
|
c.clearConnections();
|
||||||
rooms.remove(c);
|
rooms.remove(c);
|
||||||
|
@ -188,6 +189,7 @@ public abstract class RegularBuilder extends Builder {
|
||||||
} while (angle == -1 && tries > 0);
|
} while (angle == -1 && tries > 0);
|
||||||
|
|
||||||
if (angle == -1){
|
if (angle == -1){
|
||||||
|
r.clearConnections();
|
||||||
for (Room t : connectingRoomsThisBranch){
|
for (Room t : connectingRoomsThisBranch){
|
||||||
t.clearConnections();
|
t.clearConnections();
|
||||||
rooms.remove(t);
|
rooms.remove(t);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user