v0.7.5: fixed perimiter room layout issues
This commit is contained in:
parent
80728074b5
commit
15d1edff8c
|
@ -115,8 +115,8 @@ public class PerimeterRoom extends ConnectionRoom {
|
||||||
private static void fillBetweenPoints(Level level, Room r, Point from, Point to, int floor){
|
private static void fillBetweenPoints(Level level, Room r, Point from, Point to, int floor){
|
||||||
|
|
||||||
//doors are along the same side
|
//doors are along the same side
|
||||||
if (((from.x == r.left || from.x == r.right) && from.y == to.y)
|
if (((from.x == r.left+1 || from.x == r.right-1) && from.x == to.x)
|
||||||
|| ((from.y == r.top || from.y == r.bottom) && from.x == to.x)){
|
|| ((from.y == r.top+1 || from.y == r.bottom-1) && from.y == to.y)){
|
||||||
Painter.fill(level,
|
Painter.fill(level,
|
||||||
Math.min(from.x, to.x),
|
Math.min(from.x, to.x),
|
||||||
Math.min(from.y, to.y),
|
Math.min(from.y, to.y),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user