v0.7.5: fixed perimiter room layout issues

This commit is contained in:
Evan Debenham 2019-09-18 22:57:53 -04:00
parent 80728074b5
commit 15d1edff8c

View File

@ -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),