Painter.fill( level, x, top + 1, 1, height() - 2 , lastRow ); } else if (door.y == top) { x = left + width() / 2; y = bottom - 1; Painter.fill( level, left + 1, y, width() - 2, 1 , lastRow ); } else if (door.y == bottom) { x = left + width() / 2; y = top + 1; Painter.fill( level, left + 1, y, width() - 2, 1 , lastRow );
Painter.fill( level, x, top + 1, 1, height() - 2 , lastRow ); } else if (door.y == top) { x = left + width() / 2; y = bottom - 1; Painter.fill( level, left + 1, y, width() - 2, 1 , lastRow ); } else if (door.y == bottom) { x = left + width() / 2; y = top + 1; Painter.fill( level, left + 1, y, width() - 2, 1 , lastRow );