From ad420e0b6df4eec4629c3be40d93c21b913a68bc Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 4 Oct 2019 02:04:20 -0400 Subject: [PATCH] v0.7.5a: fixed issues with figure eight builder not checking for collision properly --- .../levels/builders/FigureEightBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/builders/FigureEightBuilder.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/builders/FigureEightBuilder.java index e7e003509..cab68f0bb 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/builders/FigureEightBuilder.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/builders/FigureEightBuilder.java @@ -163,7 +163,7 @@ public class FigureEightBuilder extends RegularBuilder { while (!prev.connect(landmarkRoom)){ ConnectionRoom c = ConnectionRoom.createRoom(); - if (placeRoom(firstLoop, prev, c, angleBetweenRooms(prev, entrance)) == -1){ + if (placeRoom(rooms, prev, c, angleBetweenRooms(prev, landmarkRoom)) == -1){ return null; } firstLoop.add(c); @@ -191,7 +191,7 @@ public class FigureEightBuilder extends RegularBuilder { while (!prev.connect(landmarkRoom)){ ConnectionRoom c = ConnectionRoom.createRoom(); - if (placeRoom(secondLoop, prev, c, angleBetweenRooms(prev, entrance)) == -1){ + if (placeRoom(rooms, prev, c, angleBetweenRooms(prev, landmarkRoom)) == -1){ return null; } secondLoop.add(c);