diff options
author | Julien Dessaux | 2021-09-21 15:41:52 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-09-21 15:41:52 +0200 |
commit | 270a3845cdec1baf1bb548e2042d9bbfeeecf153 (patch) | |
tree | 8e38500d9618cf4fc3f22d3f61c445b9e2566d62 /pkg/pointer/storage-offset.go | |
parent | Began implementing the stack and the stack stack (diff) | |
download | gofunge98-270a3845cdec1baf1bb548e2042d9bbfeeecf153.tar.gz gofunge98-270a3845cdec1baf1bb548e2042d9bbfeeecf153.tar.bz2 gofunge98-270a3845cdec1baf1bb548e2042d9bbfeeecf153.zip |
Simplified instruction pointer delta handling
Diffstat (limited to 'pkg/pointer/storage-offset.go')
-rw-r--r-- | pkg/pointer/storage-offset.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/pointer/storage-offset.go b/pkg/pointer/storage-offset.go index 0fcd9ed..dc63ee0 100644 --- a/pkg/pointer/storage-offset.go +++ b/pkg/pointer/storage-offset.go @@ -5,7 +5,7 @@ func (p Pointer) GetStorageOffset() (x, y int) { } func (p *Pointer) CalculateNewStorageOffset() { - p.sox, p.soy = p.x+p.delta.x, p.y+p.delta.y + p.sox, p.soy = p.x+p.dx, p.y+p.dy } func (p *Pointer) SetStorageOffset(x, y int) { |