Fix merging mistakes and chunk rooms

This commit is contained in:
Charles Peyrat 2021-01-11 01:18:20 +01:00 committed by Yohann D'ANELLO
parent 79d8ef3a44
commit 03c45a970c
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -279,7 +279,7 @@ class Generator:
if d + (x - j)**2 < r**2:
room[i][j] = Tile.FLOOR
draw_chunk(room, height//2 + 1, width//2 + 1)
draw_chunk(room, h_off + height//2 + 1, w_off + width//2 + 1)
min_w, max_w = w_off + r + 1, width + w_off - r -1
min_h, max_h = h_off + r + 1, height + h_off - r - 1