From 15d1edff8cb494369ceac94d4cd4e2c70efd7bf1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 18 Sep 2019 22:57:53 -0400 Subject: [PATCH] v0.7.5: fixed perimiter room layout issues --- .../levels/rooms/connection/PerimeterRoom.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/connection/PerimeterRoom.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/connection/PerimeterRoom.java index 44d6c5aee..69dbb0b5d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/connection/PerimeterRoom.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/connection/PerimeterRoom.java @@ -115,8 +115,8 @@ public class PerimeterRoom extends ConnectionRoom { private static void fillBetweenPoints(Level level, Room r, Point from, Point to, int floor){ //doors are along the same side - if (((from.x == r.left || from.x == r.right) && from.y == to.y) - || ((from.y == r.top || from.y == r.bottom) && from.x == to.x)){ + if (((from.x == r.left+1 || from.x == r.right-1) && from.x == to.x) + || ((from.y == r.top+1 || from.y == r.bottom-1) && from.y == to.y)){ Painter.fill(level, Math.min(from.x, to.x), Math.min(from.y, to.y),