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

@ -13,6 +13,13 @@ func (f *Field) Set(x, y, v int) {
l.x = x
l.l = 1
l.columns = append(l.columns, v)
if f.x > x {
f.lx = f.lx + f.x - x
f.x = x
}
if f.lx < x-f.x+1 {
f.lx = x - f.x + 1
}
} else if x >= l.x {
if x < l.x+l.l {
// just set the value