diff options
author | Julien Dessaux | 2021-10-01 17:24:09 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-10-01 18:42:39 +0200 |
commit | 749caa9e261d40c6af7f2516d3d3a3c30ae95f9a (patch) | |
tree | 510be574191d6057ed26c1cc48d649c7d0f4dca4 /pkg/field/blank.go | |
parent | Fixed resizing bugs in certain situations not covered by mycology (diff) | |
download | gofunge98-749caa9e261d40c6af7f2516d3d3a3c30ae95f9a.tar.gz gofunge98-749caa9e261d40c6af7f2516d3d3a3c30ae95f9a.tar.bz2 gofunge98-749caa9e261d40c6af7f2516d3d3a3c30ae95f9a.zip |
Fixed some more resizing bugs in certain situations not covered by mycology
Diffstat (limited to 'pkg/field/blank.go')
-rw-r--r-- | pkg/field/blank.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/field/blank.go b/pkg/field/blank.go index 2c30b6e..f1ac8b5 100644 --- a/pkg/field/blank.go +++ b/pkg/field/blank.go @@ -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 } |