Fixed some more resizing bugs in certain situations not covered by mycology

This commit is contained in:
Julien Dessaux 2021-10-01 17:24:09 +02:00
parent 2f66ddcb91
commit 749caa9e26
4 changed files with 43 additions and 5 deletions

View file

@ -86,6 +86,9 @@ func (f *Field) Blank(x, y int) {
f.x = f.lines[0].x
x2 := f.lines[0].l + f.lines[0].x
for i := 1; i < f.ly; i++ {
if f.lines[i].l == 0 {
continue
}
if f.x > f.lines[i].x {
f.x = f.lines[i].x
}